Skip to content

Conversation

@Peng-Lei
Copy link
Contributor

@Peng-Lei Peng-Lei commented Dec 2, 2021

What changes were proposed in this pull request?

  1. Move the SHOW CREATE TABLE w/ char/varchar to CharVarcharDDLTestBase
  2. Fix the behavior different with v1 command that about the TBLPROPERTIES

Why are the changes needed?

Before the #PR merge. We should handle some different behavior or bugs between v1 and v2 command.

Does this PR introduce any user-facing change?

No

How was this patch tested?

existed test case.

@github-actions github-actions bot added the SQL label Dec 2, 2021
@Peng-Lei
Copy link
Contributor Author

Peng-Lei commented Dec 2, 2021

At now. There is a issue left that when use v2 command show create table $t and t is a V1Table. At then the result of SHOW CREATE TABLE $t will lost the USING info. Because there is no provider info in V1Table.properties, just in the metadata provider

@SparkQA
Copy link

SparkQA commented Dec 2, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50313/

@SparkQA
Copy link

SparkQA commented Dec 2, 2021

Test build #145838 has finished for PR 34773 at commit aa3bc5b.

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

}

builder ++= "TBLPROPERTIES"
builder ++= "TBLPROPERTIES "
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change related to Fix the behavior different with v1 command that about the TBLPROPERTIES?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. Rright. Thank you for your review.

Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

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

LGTM (non-binding)

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 4741ecf Jan 5, 2022
@cloud-fan
Copy link
Contributor

t now. There is a issue left that when use v2 command show create table $t and t is a V1Table. At then the result of SHOW CREATE TABLE $t will lost the USING info. Because there is no provider info in V1Table.properties, just in the metadata provider

You are right. I think we should fix V1Table.properties to generate these built-in table properties like "provider".

cloud-fan pushed a commit that referenced this pull request Jan 12, 2022
…e.propertie to adapt to V2 command

### What changes were proposed in this pull request?
Add V2 table build-in properties into V1Table.properties to adapt to V2 command.

### Why are the changes needed?
[#discuss](#34773 (comment))

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Add ut testcase and existed ut testcase.

Closes #35131 from Peng-Lei/SPARK-37827.

Authored-by: PengLei <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
dchvn pushed a commit to dchvn/spark that referenced this pull request Jan 19, 2022
…e.propertie to adapt to V2 command

### What changes were proposed in this pull request?
Add V2 table build-in properties into V1Table.properties to adapt to V2 command.

### Why are the changes needed?
[#discuss](apache#34773 (comment))

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Add ut testcase and existed ut testcase.

Closes apache#35131 from Peng-Lei/SPARK-37827.

Authored-by: PengLei <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
scottsand-db pushed a commit to scottsand-db/delta that referenced this pull request Jan 25, 2022
…V1Table.propertie to adapt to V2 command

### What changes were proposed in this pull request?
Add V2 table build-in properties into V1Table.properties to adapt to V2 command.

### Why are the changes needed?
[#discuss](apache/spark#34773 (comment))

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Add ut testcase and existed ut testcase.

Authored-by: PengLei <[email protected]>
(cherry picked from commit d7d31d0606170847721e5c604ea7993fb202596f)

Author: PengLei <[email protected]>
Author: Bricks Bot <[email protected]>
Author: Wenchen Fan <[email protected]>
Author: Wenchen Fan <[email protected]>
Author: Max Gekk <[email protected]>

#33239 is resolved by bricks-bot/cherry-pick-master-d7d31d0606170847721e5c604ea7993fb202596f.

GitOrigin-RevId: 361704dc1813dd13025e76ce123b466844095977
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