-
Notifications
You must be signed in to change notification settings - Fork 169
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
feat: Implement Spark-compatible CAST from string to timestamp types #335
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
7619757
casting str to timestamp
vaibhawvipul 0a85cde
fix format
vaibhawvipul fe1896c
fixing failed tests, using char as pattern
vaibhawvipul 70f1e69
bug fixes
vaibhawvipul 0217f13
hangling microsecond
vaibhawvipul 36d5cc5
make format
vaibhawvipul 8d0a0d9
bug fixes and core refactor
vaibhawvipul 87b5e66
format code
vaibhawvipul b9966b7
resolving merge conflicts
vaibhawvipul 30c442d
removing print statements
vaibhawvipul 800e085
clippy error
vaibhawvipul de0cfc2
enabling cast timestamp test case
vaibhawvipul fe18d81
code refactor
vaibhawvipul 938b0b3
comet spark test case
vaibhawvipul cc60cfa
adding all the supported format in test
vaibhawvipul d250817
merge conflict resolved
vaibhawvipul 889f91b
resolve conflicts
vaibhawvipul 9dad369
fallback spark when timestamp not utc
vaibhawvipul 825fe5e
bug fix
vaibhawvipul 5041192
bug fix
vaibhawvipul 9a8dc1d
adding an explainer commit
vaibhawvipul 2980176
fix test case
vaibhawvipul 2ffea83
bug fix
vaibhawvipul 6db8115
bug fix
vaibhawvipul a67ccf7
better error handling for unwrap in fn parse_str_to_time_only_timestamp
vaibhawvipul b7a3961
remove unwrap from macro
vaibhawvipul 2f3ab08
improving error handling
vaibhawvipul 7a39136
adding tests for invalid inputs
vaibhawvipul 4743742
removed all unwraps from timestamp cast functions
vaibhawvipul 8c4ad72
code format
vaibhawvipul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regex approach is a good way to quickly get support for all of the format variations and fix the correctness issue but could also be quite expensive. It would be good to add some criterion benchmarks so that we can understand what performance looks like (does not have to be part of this PR).