-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-28152][SQL][FOLLOWUP] Add a legacy conf for old MsSqlServerDialect numeric mapping #27184
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2161,6 +2161,13 @@ object SQLConf { | |
| .booleanConf | ||
| .createWithDefault(true) | ||
|
|
||
| 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.") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| .booleanConf | ||
| .createWithDefault(false) | ||
|
|
||
| /** | ||
| * Holds information about keys that have been deprecated. | ||
| * | ||
|
|
@@ -2417,6 +2424,9 @@ class SQLConf extends Serializable with Logging { | |
|
|
||
| def addDirectoryRecursiveEnabled: Boolean = getConf(LEGACY_ADD_DIRECTORY_USING_RECURSIVE) | ||
|
|
||
| def legacyMsSqlServerNumericMappingEnabled: Boolean = | ||
| getConf(LEGACY_MSSQLSERVER_NUMERIC_MAPPING_ENABLED) | ||
|
|
||
| /** | ||
| * Returns the [[Resolver]] for the current configuration, which can be used to determine if two | ||
| * identifiers are equal. | ||
|
|
||
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?
Uh oh!
There was an error while loading. Please reload this page.
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!