Skip to content

Conversation

@ScrapCodes
Copy link
Member

What changes were proposed in this pull request?

Override the default SQL strings for:
ALTER TABLE RENAME COLUMN
ALTER TABLE UPDATE COLUMN NULLABILITY
in the following MsSQLServer JDBC dialect according to official documentation.
Write MsSqlServer integration tests for JDBC.

Why are the changes needed?

To add the support for alter table when interacting with MSSql Server.

Does this PR introduce any user-facing change?

How was this patch tested?

added tests

@ScrapCodes ScrapCodes changed the title [WIP]Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) [WIP][SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) Oct 14, 2020
@SparkQA
Copy link

SparkQA commented Oct 14, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34352/

@SparkQA
Copy link

SparkQA commented Oct 14, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34352/

@SparkQA
Copy link

SparkQA commented Oct 14, 2020

Test build #129746 has finished for PR 30038 at commit 0159909.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ScrapCodes ScrapCodes changed the title [WIP][SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) [SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) Oct 15, 2020
@SparkQA
Copy link

SparkQA commented Oct 15, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34426/

@SparkQA
Copy link

SparkQA commented Oct 15, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34426/

@SparkQA
Copy link

SparkQA commented Oct 15, 2020

Test build #129821 has finished for PR 30038 at commit c1605b0.

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

@huaxingao
Copy link
Contributor

Please rebase to get the latest change for JdbcDialects.scala.

@SparkQA
Copy link

SparkQA commented Oct 23, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34801/

@SparkQA
Copy link

SparkQA commented Oct 23, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34801/

@SparkQA
Copy link

SparkQA commented Oct 23, 2020

Test build #130200 has finished for PR 30038 at commit a119c99.

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

@ScrapCodes ScrapCodes changed the title [SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) [WIP][SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) Oct 23, 2020
@ScrapCodes
Copy link
Member Author

This needs more work, while testing this, I found rename column needs some work for mysql dialect. I am currently working on a patch for the same.

…r MsSql Server.

Added unsupported feature exception for switching nullability using alter table.
@ScrapCodes ScrapCodes changed the title [WIP][SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) [SPARK-33130][SQL] Support ALTER TABLE in JDBC v2 Table Catalog: add, update type and nullability of columns (MsSqlServer dialect) Nov 2, 2020
@ScrapCodes ScrapCodes requested a review from huaxingao November 2, 2020 06:57
@ScrapCodes
Copy link
Member Author

Hi @huaxingao and @cloud-fan , This is ready for review !

@SparkQA
Copy link

SparkQA commented Nov 2, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35116/

@SparkQA
Copy link

SparkQA commented Nov 2, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35117/

@SparkQA
Copy link

SparkQA commented Nov 2, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35116/

@SparkQA
Copy link

SparkQA commented Nov 2, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35117/

@SparkQA
Copy link

SparkQA commented Nov 2, 2020

Test build #130517 has finished for PR 30038 at commit 1306944.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 2, 2020

Test build #130516 has finished for PR 30038 at commit d9c6916.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ScrapCodes ScrapCodes requested a review from huaxingao November 3, 2020 12:00
@SparkQA
Copy link

SparkQA commented Nov 3, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35167/

@SparkQA
Copy link

SparkQA commented Nov 3, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35167/

@SparkQA
Copy link

SparkQA commented Nov 3, 2020

Test build #130566 has finished for PR 30038 at commit 449a7ad.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@huaxingao
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Nov 5, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35282/

@SparkQA
Copy link

SparkQA commented Nov 5, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35282/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130671 has finished for PR 30038 at commit 449a7ad.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 733a468 Nov 6, 2020
@ScrapCodes
Copy link
Member Author

Thanks !!

@ScrapCodes ScrapCodes deleted the mssql-dialect branch November 6, 2020 09:37
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.

5 participants