-
Notifications
You must be signed in to change notification settings - Fork 118
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
SNOW-984699: Add support for to_timestamp_* to local testing #1244
SNOW-984699: Add support for to_timestamp_* to local testing #1244
Conversation
64d5788
to
de0f3c3
Compare
cd8bad4
to
4b48612
Compare
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.
looks good to me
Per default fmt is set to auto, which makes Snowflake detect the format automatically. With `to_timestamp` strings | ||
can be converted to timestamps. The format has to be specified according to the rules set forth in | ||
<https://docs.snowflake.com/en/sql-reference/functions-conversion#date-and-time-formats-in-conversion-functions> |
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.
a simple example here would be better
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.
I'll see if I can add a ntz example. Unfortunately I can't control the host tz for ltz an tz functions so examples there might fail doctests depending on the host tz.
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.
only minor comments, overall changes LGTM!
Please answer these questions before submitting your pull requests. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-984699
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
This PR does two main things:
to_timestamp_*
functions which convert any compatible type into a relevant timestamp type.Open Questions: