-
Notifications
You must be signed in to change notification settings - Fork 348
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
Empty string is converted to null #331
Comments
This is a known issue (#49) but we could do a better job of documenting it in the README. Do you have any suggestions for how we can fix this? |
I was discussing this with @drewrobb (it bit me this morning); I hadn't realized where the distinction was lost, and it looks like it's lost in the http://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD_command_examples.html#unload-examples-null-as |
In conjunction with the unload option |
Adding an option for configuration of the null value sounds reasonable to me. |
Is there any update on this? |
Databricks has decided to close source new work on this project, so I don't expect any update or any PR accepted here. Maybe a community fork will get going, I'm disappointed and will avoid Databricks open source projects going forward. |
Is this supposed to be fixed? Writing data with empty strings to Redshift keeps giving me errors regarding non-nullable column, but i would like to keep the empty strings as they are and not convert them to null |
I was wondering if you had an issue with Redshift that returns NULL in one database and on the same dataset but in different database it returns empty string. The data is the same on both of the databases? |
spark-redshift (v3.0.0-preview1) will convert an empty string
''
into anull
value when reading data from redshift:In redshift, there is a distinction between
null
and''
:spark-sql also supports this distinction:
The text was updated successfully, but these errors were encountered: