-
Notifications
You must be signed in to change notification settings - Fork 487
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
Support CEIL(expr TO DateTimeField)
and FLOOR(expr TO DateTimeField)
#635
Conversation
CEIL(expr TO DateTimeField)
and FLOOR(expr TO DateTimeField
CEIL(expr TO DateTimeField)
and FLOOR(expr TO DateTimeField)
Pull Request Test Coverage Report for Build 3199394745
💛 - Coveralls |
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.
Thank you for the contribution @sarahyurick -- what database supports the CEIL( as date) syntax?
Do you think this will cause issues with existing queries that use ceil
as a function, for example
select ceil(float_column) from my_table;
?
In terms of other databases that support this syntax, I've had trouble finding examples, but am mostly trying to support existing tests in Dask-SQL that were originally implemented with dask-contrib/dask-sql#91. I can create some tests with |
As long as |
Okay @alamb, let me know what you think of this implementation. I created a special Similarly, when we're formatting the expression, we check if we have a |
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.
Thank you @sarahyurick -- I think this PR looks almost ready to go. I had a few style suggestions, but I think the basic structure looks good as do the tests. Thank you.
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
OK, I've refactored |
Hi, I'd like to be able to parse the following statements:
and
I also added
Microsecond
andMillisecond
in addition to the existing (plural)Microseconds
andMilliseconds
.