Skip to content

Conversation

@huaxingao
Copy link
Contributor

What changes were proposed in this pull request?

Throw Exception if JDBC Table Catalog has provider in create table.

Why are the changes needed?

JDBC Table Catalog doesn't support provider and we should throw Exception. Previously CREATE TABLE syntax forces people to specify a provider so we have to add a USING_. Now the problem was fix and we will throw Exception for provider.

Does this PR introduce any user-facing change?

Yes. We throw Exception if a provider is specified in CREATE TABLE for JDBC Table catalog.

How was this patch tested?

Existing tests (remove USING _)

@github-actions github-actions bot added the SQL label Nov 30, 2020
@maropu maropu changed the title [SPARK-32405][SQL] [FOLLOWUP] Throw Exception if provider is specified in JDBCTableCatalog create table [SPARK-32405][SQL][FOLLOWUP] Throw Exception if provider is specified in JDBCTableCatalog create table Nov 30, 2020
@HyukjinKwon
Copy link
Member

cc @MaxGekk FYI

@SparkQA
Copy link

SparkQA commented Nov 30, 2020

Test build #131970 has finished for PR 30544 at commit afed2fa.

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

@huaxingao
Copy link
Contributor Author

also cc @cloud-fan

properties.asScala.map {
case (k, v) => k match {
case "comment" => tableComment = v
// ToDo: have a follow up to fail provider once unify create table syntax PR is merged
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove TODO

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in d38883c Dec 1, 2020
@huaxingao
Copy link
Contributor Author

Thanks

@huaxingao huaxingao deleted the followup branch December 1, 2020 23:47
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.

4 participants