-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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-13139][SQL] Follow-ups to #11573 #11667
Conversation
Test build #52967 has finished for PR 11667 at commit
|
LGTM |
@@ -36,6 +36,18 @@ private[sql] class SparkQl(conf: ParserConf = SimpleParserConf()) extends Cataly | |||
/** | |||
* For each node, extract properties in the form of a list ['key1', 'key2', 'key3', 'value'] | |||
* into a pair (key1.key2.key3, value). | |||
* |
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.
Not very related to this PR. @hvanhovell Do you know when we will have something like
TOK_TABLEPROPERTY
'key_part1'
'key_part2'
'key_part3'
'value'
(the form that matches the original comment extract properties in the form of a list ['key1', 'key2', 'key3', 'value'] into a pair (key1.key2.key3, value).
)
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.
That happens when we have a dot-separated key, e.g.: a.b.c
The parser identifies each part of the identifier separately, e.g: a
, b
& c
. It is a bit of a PITA to re-construct this in ANTLR3, so we currently do this in the tree parser.
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.
@andrewor14 I will change For each node, extract properties in the form of a list ['key1', 'key2', 'key3', 'value'] into a pair (key1.key2.key3, value).
to For each node, extract properties in the form of a list ['key_part1', 'key_part2', 'key_part3', 'value'] into a pair (key_part1.key_part2.key_part3, value).
. Hopefully, this will make the comment easier to understand.
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.
@hvanhovell Thanks!
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.
sg
LGTM. I am merging this to master. |
Addressing outstanding comments in apache#11573. Jenkins, new test case in `DDLCommandSuite` Author: Andrew Or <andrew@databricks.com> Closes apache#11667 from andrewor14/ddl-parser-followups.
Addressing outstanding comments in apache#11573. Jenkins, new test case in `DDLCommandSuite` Author: Andrew Or <andrew@databricks.com> Closes apache#11667 from andrewor14/ddl-parser-followups.
What changes were proposed in this pull request?
Addressing outstanding comments in #11573.
How was this patch tested?
Jenkins, new test case in
DDLCommandSuite