Skip to content

Conversation

@WeichenXu123
Copy link
Contributor

@WeichenXu123 WeichenXu123 commented Jul 30, 2019

What changes were proposed in this pull request?

Support the syntax of ALTER (DATABASE|SCHEMA) database_name SET LOCATION path

Ref: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL

How was this patch tested?

UT.

Please review https://spark.apache.org/contributing.html before opening a pull request.

@SparkQA
Copy link

SparkQA commented Jul 30, 2019

Test build #108360 has finished for PR 25294 at commit 361d70f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AlterDatabaseLocationCommand(databaseName: String, location: String)

@WeichenXu123 WeichenXu123 changed the title [SPARK-28476][SQL][WIP] Support ALTER DATABASE SET LOCATION [SPARK-28476][SQL] Support ALTER DATABASE SET LOCATION Jul 30, 2019

test("alter database set location") {
// ALTER (DATABASE|SCHEMA) database_name SET LOCATION
val sql1 = "ALTER DATABASE database_name SET LOCATION '/home/user/db'"
Copy link
Member

@gatorsmile gatorsmile Jul 30, 2019

Choose a reason for hiding this comment

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

This is the parser test case.

Add both negative and positive end to end test cases?

Copy link
Member

Choose a reason for hiding this comment

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

Add it to DDLSuite?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I add a positive e2e test case.
What's the negative test case you want to add ?

Copy link
Member

Choose a reason for hiding this comment

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

  1. A database that does not exist before issuing this command?
  2. Setting an illegal path that could trigger an exception inside the function stringToURI

@gatorsmile
Copy link
Member

cc @rednaxelafx

@SparkQA
Copy link

SparkQA commented Jul 30, 2019

Test build #108400 has finished for PR 25294 at commit 71033f8.

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

@SparkQA
Copy link

SparkQA commented Jul 30, 2019

Test build #108408 has finished for PR 25294 at commit f3eb6e9.

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

@SparkQA
Copy link

SparkQA commented Jul 31, 2019

Test build #108431 has finished for PR 25294 at commit bd4fb39.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class AlterDatabaseSetLocationCommand(databaseName: String, location: String)

@SparkQA
Copy link

SparkQA commented Jul 31, 2019

Test build #108456 has finished for PR 25294 at commit 7140624.

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

@SparkQA
Copy link

SparkQA commented Jul 31, 2019

Test build #108473 has finished for PR 25294 at commit d209d85.

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

@SparkQA
Copy link

SparkQA commented Aug 1, 2019

Test build #108498 has finished for PR 25294 at commit 93d76d6.

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

@SparkQA
Copy link

SparkQA commented Aug 2, 2019

Test build #108563 has finished for PR 25294 at commit 11255a5.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Aug 2, 2019

Test build #108564 has finished for PR 25294 at commit 0631959.

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

@SparkQA
Copy link

SparkQA commented Aug 2, 2019

Test build #108572 has finished for PR 25294 at commit c51f31c.

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

@SparkQA
Copy link

SparkQA commented Aug 2, 2019

Test build #108575 has finished for PR 25294 at commit 734c302.

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

@WeichenXu123 WeichenXu123 changed the title [SPARK-28476][SQL] Support ALTER DATABASE SET LOCATION [WIP][SPARK-28476][SQL] Support ALTER DATABASE SET LOCATION Aug 3, 2019
@WeichenXu123
Copy link
Contributor Author

Jenkins, retest this please.

@WeichenXu123
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 4, 2019

Test build #108596 has finished for PR 25294 at commit efed7d0.

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

@SparkQA
Copy link

SparkQA commented Aug 4, 2019

Test build #108599 has finished for PR 25294 at commit 2a95580.

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

@SparkQA
Copy link

SparkQA commented Aug 4, 2019

Test build #108597 has finished for PR 25294 at commit efed7d0.

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

@WeichenXu123
Copy link
Contributor Author

@gatorsmile Any idea to address the hive metadata api "set db location" not working issue ?

@wangyum
Copy link
Member

wangyum commented Sep 21, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Sep 21, 2019

Test build #111110 has finished for PR 25294 at commit 2a95580.

  • This patch fails Spark unit 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.

5 participants