Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE][Lineage] Support Lateral view explode statement #4430

Closed
3 of 4 tasks
iodone opened this issue Mar 1, 2023 · 0 comments
Closed
3 of 4 tasks

[FEATURE][Lineage] Support Lateral view explode statement #4430

iodone opened this issue Mar 1, 2023 · 0 comments
Labels

Comments

@iodone
Copy link
Contributor

iodone commented Mar 1, 2023

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the feature

Test case:

test("test lateral view explode") {
  withTable("t1", "t2") { _ =>
    spark.sql("CREATE TABLE t1 (a string, b string, c string) USING hive")
    spark.sql("CREATE TABLE t2 (a string, b string, c string) USING hive")
    val ret0 = exectractLineage("insert into t1 select 1,2,a.action " +
        "from t2 lateral view explode(split(c,'\\},\\{')) a as action")
    assert(ret0 == Lineage(
      List("default.t2"),
      List("default.t1"),
      List(
        ("default.t1.a", Set()),
        ("default.t1.b", Set()),
        ("default.t1.c", Set("default.t2.c"))
      )))
  }
}

Motivation

No response

Describe the solution

No response

Additional context

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
  • No. I cannot submit a PR at this time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant