Skip to content

Conversation

@huaxingao
Copy link
Contributor

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.

USE my_catalog
DESC t // success and describe the table t from my_catalog
ALTER TABLE t SET SERDE 'org.apache.class' // report table not found as there is no table t in the session catalog

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.

@SparkQA
Copy link

SparkQA commented Nov 3, 2019

Test build #113146 has finished for PR 26374 at commit b32975f.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AlterTableSerDePropertiesStatement(

@huaxingao
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Nov 3, 2019

Test build #113180 has finished for PR 26374 at commit b32975f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AlterTableSerDePropertiesStatement(

@huaxingao
Copy link
Contributor Author

@viirya @cloud-fan @imback82
Could you please review? Thanks!

@cloud-fan
Copy link
Contributor

unfortunately it conflicts...

@huaxingao
Copy link
Contributor Author

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.

@huaxingao
Copy link
Contributor Author

Should be good now. Thanks! @cloud-fan

Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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.

@SparkQA
Copy link

SparkQA commented Nov 4, 2019

Test build #113219 has finished for PR 26374 at commit 00eea57.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AlterTableSerDePropertiesStatement(

@huaxingao
Copy link
Contributor Author

@dongjoon-hyun Thanks for your comments. I will update the code.

@dongjoon-hyun
Copy link
Member

Thanks!

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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 .

@SparkQA
Copy link

SparkQA commented Nov 5, 2019

Test build #113231 has finished for PR 26374 at commit a38b170.

  • This patch passes all tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Nov 5, 2019

Merged to master.
Thank you, @huaxingao , @cloud-fan , @viirya , @imback82

@huaxingao
Copy link
Contributor Author

Thanks a lot! @dongjoon-hyun @cloud-fan @viirya @imback82

@huaxingao huaxingao deleted the spark_29695 branch November 5, 2019 06:03
@SparkQA
Copy link

SparkQA commented Nov 5, 2019

Test build #113233 has finished for PR 26374 at commit 7c2078f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

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 this pull request may close these issues.

6 participants