-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-28152][SQL][FOLLOWUP] Add a legacy conf for old MsSqlServerDialect numeric mapping #27184
Conversation
…erDialect numeric mapping
cc @shivsood , @HyukjinKwon , @maropu , @srowen , @gatorsmile , @zsxwing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Thank you for review and approval, @HyukjinKwon ! |
Test build #116601 has finished for PR 27184 at commit
|
All Scala/Java test passed and the PySpark failure is due to a known |
…lect numeric mapping This is a follow-up for #25248 . The new behavior cannot access the existing table which is created by old behavior. This PR provides a way to avoid new behavior for the existing users. Yes. This will fix the broken behavior on the existing tables. Pass the Jenkins and manually run JDBC integration test. ``` build/mvn install -DskipTests build/mvn -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.12 test ``` Closes #27184 from dongjoon-hyun/SPARK-28152-CONF. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit 28fc043) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Late LGTM. |
@@ -2161,6 +2161,13 @@ object SQLConf { | |||
.booleanConf | |||
.createWithDefault(true) | |||
|
|||
val LEGACY_MSSQLSERVER_NUMERIC_MAPPING_ENABLED = | |||
buildConf("spark.sql.legacy.mssqlserver.numericMapping.enabled") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For such a change, could we have an item in the migration guide?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Can we handle that after releasing 2.4.5 since It's a documentation change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
val LEGACY_MSSQLSERVER_NUMERIC_MAPPING_ENABLED = | ||
buildConf("spark.sql.legacy.mssqlserver.numericMapping.enabled") | ||
.internal() | ||
.doc("When true, use legacy MySqlServer SMALLINT and REAL type mapping.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not very clear what is the legacy MySqlServer SMALLINT and REAL type mapping if they do not read the PR. Could we make it clear? The behavior when the value is set to true and the behavior when the value is false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, I'd like to mention it at the migration guide fully.
BTW, @gatorsmile . If you have any concern on 2.4.5 RC1, could you vote on the mailing list like @cloud-fan ? I want to collect all feedback. |
What changes were proposed in this pull request?
This is a follow-up for #25248 .
Why are the changes needed?
The new behavior cannot access the existing table which is created by old behavior.
This PR provides a way to avoid new behavior for the existing users.
Does this PR introduce any user-facing change?
Yes. This will fix the broken behavior on the existing tables.
How was this patch tested?
Pass the Jenkins and manually run JDBC integration test.