-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29695][SQL] ALTER TABLE (SerDe properties) should look up catalog/table like v2 commands #26374
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
Conversation
|
Test build #113146 has finished for PR 26374 at commit
|
|
retest this please |
|
Test build #113180 has finished for PR 26374 at commit
|
|
@viirya @cloud-fan @imback82 |
|
unfortunately it conflicts... |
|
I actually just resolved the conflict a few mins ago before I pinged you. Not sure why it didn't refresh. Let me double check. |
b32975f to
00eea57
Compare
|
Should be good now. Thanks! @cloud-fan |
imback82
left a comment
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.
LGTM
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
Show resolved
Hide resolved
dongjoon-hyun
left a comment
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.
I left a few minor comments to polish the test part, @huaxingao . The other part looks good.
|
Test build #113219 has finished for PR 26374 at commit
|
|
@dongjoon-hyun Thanks for your comments. I will update the code. |
|
Thanks! |
…log/table like v2 commands
a38b170 to
7c2078f
Compare
dongjoon-hyun
left a comment
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.
+1, LGTM (Pending Jenkins).
Thank you, @huaxingao .
|
Test build #113231 has finished for PR 26374 at commit
|
|
Merged to master. |
|
Thanks a lot! @dongjoon-hyun @cloud-fan @viirya @imback82 |
|
Test build #113233 has finished for PR 26374 at commit
|
What changes were proposed in this pull request?
Add AlterTableSerDePropertiesStatement and make ALTER TABLE ... SET SERDE/SERDEPROPERTIES go through the same catalog/table resolution framework of v2 commands.
Why are the changes needed?
It's important to make all the commands have the same table resolution behavior, to avoid confusing end-users. e.g.
Does this PR introduce any user-facing change?
Yes. When running ALTER TABLE ... SET SERDE/SERDEPROPERTIES, Spark fails the command if the current catalog is set to a v2 catalog, or the table name specified a v2 catalog.
How was this patch tested?
Unit tests.