Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Conversation

@dichiarafrancesco
Copy link

Fix double type to float and cleanup non redshift types

@dichiarafrancesco dichiarafrancesco requested a review from smoy May 9, 2018 01:20
Copy link

@smoy smoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have unit test that test against this change?

case java.sql.Types.REAL => DoubleType
case java.sql.Types.REF => StringType
case java.sql.Types.ROWID => LongType
case java.sql.Types.REAL => FloatType
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want an inline comment to remind future reader Redshift Real is represented in 4 bytes IEEE Float. (it's a special snowflake because JDBC Real is usually 8 bytes IEEE float but PostgreSQL (thus Redshift because of lineage) treats Real differently.

@smoy
Copy link

smoy commented May 9, 2018

LGTM, ship it.

@dichiarafrancesco dichiarafrancesco merged commit 040b4a9 into master May 10, 2018
sungjuly added a commit to sungjuly/spark-redshift that referenced this pull request Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants