-
Notifications
You must be signed in to change notification settings - Fork 79
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
Added datediff() and dateadd() for hours/minutes/seconds for Spark, Oracle, PostGres, RedShift #347
Added datediff() and dateadd() for hours/minutes/seconds for Spark, Oracle, PostGres, RedShift #347
Conversation
Thanks! Two questions:
|
I don't have access to test environments for the other languages. Who can be engaged to make the edits for those? I am ambivalent about rules that don't translate. One option is to keep them there so that authors know they were considered, unless it risks getting the parser confused. |
Let's work on the other dialects at the hack-a-thon. I'm leaning towards not including rules that don't translate. There are many things that don't need translation. If we add all those the set of rules will become massive. It is also a bit of an open set. For example, we don't translate |
Sorry, this one slipped of my radar. Would you mind removing the rules that don't translate? |
@schuemie , I removed the translations that didn't do anything. |
@schuemie - Note, I only added time-based translations for hour, minute and second. I did not change the default translations for days. This should keep the default behavior (e.g. if add days to a datetime value, the logic will effectively strip off the time portion first). If users truly want 24 hour periods, as opposed to calendar days, they can add 24 * N hours, instead of N days. |
….0 - e.g. for nearly 2 years
Added translations and test cases for Spark datediff() for non-day intervals.
Solves issue #345