Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

after #16296 , we have a new unified CREATE TABLE syntax, SHOW CREATE TABLE should also generate SQL statement using the new syntax.

However, the new syntax doesn't support table properties, SHOW CREATE TABLE may still generate legacy hive syntax if table properties are not empty.

How was this patch tested?

existing tests

case MANAGED => " TABLE"
builder ++= s" AS\n${tableMeta.viewText.get}"
builder.toString
} else if (DDLUtils.isHiveTable(tableMeta) && tableMeta.properties.nonEmpty) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this condition is true most of the time, because Hive metastore will generate some table properties. https://issues.apache.org/jira/browse/SPARK-19241 is tracking it

@SparkQA
Copy link

SparkQA commented Jan 16, 2017

Test build #71440 has finished for PR 16600 at commit dfb25a1.

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

@gatorsmile
Copy link
Member

cc @cloud-fan

@SparkQA
Copy link

SparkQA commented Sep 17, 2017

Test build #81849 has started for PR 16600 at commit dfb25a1.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/81849/
Test FAILed.

@rxin
Copy link
Contributor

rxin commented Aug 22, 2018

Can you close this pr?

@cloud-fan cloud-fan closed this Aug 22, 2018
@cloud-fan
Copy link
Contributor Author

We will revisit it after we completely make hive a data source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants