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

Fix edge cases: Use TRY_CAST for type conversions, convert cols to datetime before stringification #378

Merged
merged 9 commits into from
Aug 30, 2023

Conversation

jonmmease
Copy link
Collaborator

This PR adds support for the TRY_CAST construct across SQL dialects and switches to using TRY_CAST for type conversions. This avoids crashes for things like Vega's toNumeric("abc"), instead returning a NULL, which is much closer to Vega's behavior (it returns a NaN).

Also adds an explicit toDate to the local datetime stringification logic to handle edge cases where a string column is used in a local datetime context without conversion.

@jonmmease jonmmease merged commit adaf4aa into main Aug 30, 2023
30 checks passed
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.

1 participant