-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SPARK-13698][SQL] Fix Analysis Exceptions when Using Backticks in Generate #11538
Conversation
ok to test |
This change itself LGTM. However, the current implementation of |
Test build #52516 has finished for PR 11538 at commit
|
@liancheng Thanks a lot. I will work on the follow up PR to handle escaped back-ticks. |
hi @dilipbiswal , can you update your test case to use escaped back-ticks(e.g. |
Hi @cloud-fan Sure.. will do. |
Test build #52655 has finished for PR 11538 at commit
|
Test build #52660 has finished for PR 11538 at commit
|
|FROM `default`.`src` | ||
|LATERAL VIEW explode(array(array(1, 2, 3))) `gentab1` AS `gencol1` | ||
|LATERAL VIEW explode(`gentab1`.`gencol1`) `gentab2` AS `gencol2` | ||
""".stripMargin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please follow the code style of other tests, e.g. https://github.com/dilipbiswal/spark/blob/SPARK-13698/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveQlSuite.scala#L195-L199
LGTM except one style comment |
Test build #52712 has finished for PR 11538 at commit
|
LGTM cc @liancheng |
thanks, merging to master! |
…nerate ## What changes were proposed in this pull request? Analysis exception occurs while running the following query. ``` SELECT ints FROM nestedArray LATERAL VIEW explode(a.b) `a` AS `ints` ``` ``` Failed to analyze query: org.apache.spark.sql.AnalysisException: cannot resolve '`ints`' given input columns: [a, `ints`]; line 1 pos 7 'Project ['ints] +- Generate explode(a#0.b), true, false, Some(a), [`ints`apache#8] +- SubqueryAlias nestedarray +- LocalRelation [a#0], [[[[1,2,3]]]] ``` ## How was this patch tested? Added new unit tests in SQLQuerySuite and HiveQlSuite Author: Dilip Biswal <[email protected]> Closes apache#11538 from dilipbiswal/SPARK-13698.
What changes were proposed in this pull request?
Analysis exception occurs while running the following query.
How was this patch tested?
Added new unit tests in SQLQuerySuite and HiveQlSuite