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

Do not attempt to coerce a value when NULL #353

Merged
merged 1 commit into from Sep 21, 2021

Conversation

til
Copy link
Contributor

@til til commented Jun 24, 2021

Previously, an Athena query such as

SELECT CAST(NULL AS timestamp)

resulted in an "no implicit conversion of nil into String" error due
to the attempt to parse nil as time.

Also do not set numeric values to 0 or 0.0 when NULL.

Previously, a query such as

    SELECT CAST(NULL AS timestamp)

resulted in an "no implicit conversion of nil into String" error due
to the attempt to parse `nil` as time.

Also do not set numeric values to 0 or 0.0 when NULL.
@ankane
Copy link
Owner

ankane commented Jun 30, 2021

Hey @til, thanks for the PR. Will test this out next time I'm working with Athena.

@ankane
Copy link
Owner

ankane commented Sep 21, 2021

Works great, thanks @til!

@til til deleted the athena-skip-nulls branch September 21, 2021 15:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants