Skip to content
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

'text' is not a valid data type with Redshift #3

Open
RoryO opened this issue Dec 9, 2016 · 1 comment
Open

'text' is not a valid data type with Redshift #3

RoryO opened this issue Dec 9, 2016 · 1 comment

Comments

@RoryO
Copy link
Contributor

RoryO commented Dec 9, 2016

It's common to use text in an AR migration to define a wide column that contains many characters. Redshift does not support a text datatype, but it does support varchar up to 65535. Therefore, we should change the definition of text in a migration to generate VARCHAR(65535) instead of VARCHAR(255), which what happens now and likely surprising behavior.

I'm up in the air if we want to throw some sort of warning about this. A 64k wide column probably isn't what you actually want, but you likely want something bigger than 255.

@seivan
Copy link

seivan commented Dec 17, 2016

We store large swats of HTML in our text and we would actually like a default of VARCHAR(65535) as text, so I second this.

coconup referenced this issue in hibase/activerecord6-redshift-adapter Dec 30, 2020
fix(interface): fix method signatures to better align with ActiveRecord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants