-
Notifications
You must be signed in to change notification settings - Fork 88
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
embulk-output-redshift should not convert TEXT columns to VARCHAR(65535) #225
Comments
@mjalkio |
@mjalkio Line 56 in 71f422d
|
Thank you for looking into this @hito4t! Can you point me to where CLOB is defined as the default? CLOB still seems like a strange choice because (1) as you mention it is usually larger than needed and (2) it is only supported by two of the database types that redshift-output-jdbc supports. We don't want to have to define |
@mjalkio
In the following line. Or you can change default Redshift column type for string by changing the following line. |
Okay, so to be clear you would not want to change Redshift to have this method?
|
By the way, I think |
TEXT
columns created by Embulk default toVARCHAR(65535)
. This is definitely larger than necessary in the majority of situations and is a Redshift antipattern.Based on the comment in the code:
embulk-output-jdbc/embulk-output-redshift/src/main/java/org/embulk/output/redshift/RedshiftOutputConnection.java
Line 51 in 71f422d
It seems that this could have been implemented before Redshift had support for the
TEXT
type. According to the Redshift documentation,TEXT
now converts toVARCHAR(256)
, which is a more reasonable size.The text was updated successfully, but these errors were encountered: