Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Mar 18, 2020

What changes were proposed in this pull request?

A few CREATE TABLE test cases have some assumption on the default value of LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED. This PR (SPARK-31181) makes the test cases more explicit from test-case side.

The configuration change was tested via #27894 during discussing SPARK-31136. This PR has only the test case part from that PR.

Why are the changes needed?

This makes our test case more robust in terms of the default value of LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED. Even in the case where we switch the conf value, that will be one-liner with no test case changes.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the Jenkins with the existing tests.

@dongjoon-hyun dongjoon-hyun changed the title Remove the default value assumption on CREATE TABLE test cases [SQL][TESTS] Remove the default value assumption on CREATE TABLE test cases Mar 18, 2020
@dongjoon-hyun dongjoon-hyun changed the title [SQL][TESTS] Remove the default value assumption on CREATE TABLE test cases [SPARK-31181][SQL][TESTS] Remove the default value assumption on CREATE TABLE test cases Mar 18, 2020
@SparkQA
Copy link

SparkQA commented Mar 18, 2020

Test build #119980 has finished for PR 27946 at commit c7d6c12.

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

@dongjoon-hyun
Copy link
Member Author

Hi, @cloud-fan . Could you review this PR?
At least, I believe we need this PR for the downstream who consumes our repository.


-- [SPARK-19842] Informational Referential Integrity Constraints Support in Spark
CREATE TABLE view_base_table (key int /* PRIMARY KEY */, data varchar(20));
CREATE TABLE view_base_table (key int /* PRIMARY KEY */, data varchar(20)) USING PARQUET;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we keep the pgsql test as what it is in pgsql?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi, @cloud-fan . We are using CREATE TABLE USING even in pgsql test. It's okay to change this.

@SparkQA
Copy link

SparkQA commented Mar 19, 2020

Test build #120066 has finished for PR 27946 at commit 6594d84.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master/3.0!

@cloud-fan cloud-fan closed this in f1cc867 Mar 20, 2020
@dongjoon-hyun
Copy link
Member Author

Thank you, @cloud-fan ! Also, I closed #27894.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-EXPLICIT-TEST branch March 20, 2020 04:38
dongjoon-hyun added a commit that referenced this pull request Mar 20, 2020
…TE TABLE test cases

A few `CREATE TABLE` test cases have some assumption on the default value of `LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED`. This PR (SPARK-31181) makes the test cases more explicit from test-case side.

The configuration change was tested via #27894 during discussing SPARK-31136. This PR has only the test case part from that PR.

This makes our test case more robust in terms of the default value of `LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED`. Even in the case where we switch the conf value, that will be one-liner with no test case changes.

No.

Pass the Jenkins with the existing tests.

Closes #27946 from dongjoon-hyun/SPARK-EXPLICIT-TEST.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit f1cc867)
Signed-off-by: Dongjoon Hyun <[email protected]>
sjincho pushed a commit to sjincho/spark that referenced this pull request Apr 15, 2020
…TE TABLE test cases

### What changes were proposed in this pull request?

A few `CREATE TABLE` test cases have some assumption on the default value of `LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED`. This PR (SPARK-31181) makes the test cases more explicit from test-case side.

The configuration change was tested via apache#27894 during discussing SPARK-31136. This PR has only the test case part from that PR.

### Why are the changes needed?

This makes our test case more robust in terms of the default value of `LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED`. Even in the case where we switch the conf value, that will be one-liner with no test case changes.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

Pass the Jenkins with the existing tests.

Closes apache#27946 from dongjoon-hyun/SPARK-EXPLICIT-TEST.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants