-
Notifications
You must be signed in to change notification settings - Fork 3.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
Add config property to disable new Redshift type mappings #15513
Conversation
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.
Could you share the manual test result?
I ran them and they passed |
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.
typo in release notes:
"which can be disable" -> "which can be disabled"
@@ -237,9 +238,11 @@ public RedshiftClient( | |||
JdbcStatisticsConfig statisticsConfig, | |||
QueryBuilder queryBuilder, | |||
IdentifierMapping identifierMapping, | |||
RemoteQueryModifier queryModifier) | |||
RemoteQueryModifier queryModifier, |
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.
nit: queryModifier is always the last arg in *Client classes
@@ -467,6 +470,11 @@ protected void verifyColumnName(DatabaseMetaData databaseMetadata, String column | |||
@Override | |||
public Optional<ColumnMapping> toColumnMapping(ConnectorSession session, Connection connection, JdbcTypeHandle type) | |||
{ | |||
// todo remove this when legacy type mapping is no longer supported |
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.
nit: todo
-> TODO
return legacyTypeMapping; | ||
} | ||
|
||
@Config("redshift.use-legacy-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.
use
-> force
It has been used even before. Even more, it's used in other connectors, but as a fallback. Here it overrides improved mapping.
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(X) Release notes are required, with the following suggested text: