Skip to content

[SPARK-31682][SQL] Turn on spark.sql.legacy.createHiveTableByDefault.enabled by default #28500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

Ngone51
Copy link
Member

@Ngone51 Ngone51 commented May 11, 2020

What changes were proposed in this pull request?

Set spark.sql.legacy.createHiveTableByDefault.enabled to true by default.

Why are the changes needed?

According to the latest status of [DISCUSS] Resolve ambiguous parser rule between two "create table"s, we decide to turn this conf on by default to unblock Spark 3.0 release.

Does this PR introduce any user-facing change?

No(comparing to Spark 2.4)

How was this patch tested?

Pass jenkins.

@Ngone51
Copy link
Member Author

Ngone51 commented May 11, 2020

@@ -2235,7 +2235,7 @@ object SQLConf {
s"instead of the value of ${DEFAULT_DATA_SOURCE_NAME.key}.")
.version("3.0.0")
.booleanConf
.createWithDefault(false)
.createWithDefault(true)
Copy link
Member

Choose a reason for hiding this comment

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

Also check the migration guide. We need to remove one line/

@SparkQA
Copy link

SparkQA commented May 11, 2020

Test build #122507 has finished for PR 28500 at commit ffccb4a.

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

@SparkQA
Copy link

SparkQA commented May 11, 2020

Test build #122509 has finished for PR 28500 at commit 0fc974f.

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

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented May 11, 2020

Hi, @Ngone51 .
Could you fix the UT? Those are relevant failures.

@rdblue
Copy link
Contributor

rdblue commented May 11, 2020

+1 for this in master as an intermediate step.

-1 for this in 3.0 because it is not safe to release 3.0 with SPARK-30098, even with the property turned off. That PR introduces confusing behavior for CREATE TABLE that is not well understood. I don't think it is a good idea to include SPARK-30098 because we would have to support the flag with that behavior.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Hi, @Ngone51 . Since you are already an experienced contributor, I want to add some comments.

First of all, this is not SPARK-30098.

[SPARK-30098][SQL] Use default datasource as provider for CREATE TABLE syntax

Also, technically, I tried this as SPARK-31136 officially. And, at that time, @cloud-fan and @HyukjinKwon were there. Since SPARK-31136 was not accepted and the JIRA issue is closed. I only made some test cases neutral to the conf.

Given the updated circumstance (the discussions and email), I agree with this. However, we had better file a new JIRA as a subtask of SPARK-31085 and update this PR's title. This decision is worth of it. Thanks.

@HeartSaVioR
Copy link
Contributor

The discussion thread is still active. Let's make a consensus there before moving on.

@Ngone51 Ngone51 changed the title [SPARK-30098][SQL] Turn on spark.sql.legacy.createHiveTableByDefault.enabled by default [SPARK-31682][SQL] Turn on spark.sql.legacy.createHiveTableByDefault.enabled by default May 12, 2020
@Ngone51
Copy link
Member Author

Ngone51 commented May 12, 2020

However, we had better file a new JIRA as a subtask of SPARK-31085 and update this PR's title.

Thanks for your advice. Updated.

@dongjoon-hyun
Copy link
Member

Thank you so much, @Ngone51 .

@dongjoon-hyun
Copy link
Member

Since #28517 is merged, I'll close this PR. Thank you all.

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.

7 participants