Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Casting String to Date should throw exception on parse error in ANSI mode #1941

Closed
razajafri opened this issue Mar 16, 2021 · 0 comments · Fixed by #3396
Closed

Casting String to Date should throw exception on parse error in ANSI mode #1941

razajafri opened this issue Mar 16, 2021 · 0 comments · Fixed by #3396
Assignees
Labels
audit_3.2.0 feature request New feature or request P0 Must have for release

Comments

@razajafri
Copy link
Collaborator

Currently, when casting a string as timestamp type in ANSI mode, Spark throws a runtime exception on parsing error.
However, the result for casting a string to date is always null. We should throw an exception on parsing error as well.

Additional context
Look at Spark commit for details

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
audit_3.2.0 feature request New feature or request P0 Must have for release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants