-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
evalengine: Fix temporal cases in MAKETIME
#15709
Conversation
Signed-off-by: Noble Mittal <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
@@ -3934,6 +3934,34 @@ func (asm *assembler) Fn_MAKETIME_i() { | |||
}, "FN MAKETIME INT64(SP-3) INT64(SP-2) INT64(SP-1)") | |||
} | |||
|
|||
func (asm *assembler) Fn_MAKETIME_D() { |
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.
We're using a lowercase d
as the suffix for other decimal related functions, so let's also keep using that here.
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.
we already have Fn_MAKETIME_d
for decimal cases, Fn_MAKETIME_D
is for the temporal cases, like the one in DATEADD Fn_DATEADD_D
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.
@beingnoble03 ah, sorry, you're right!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15709 +/- ##
=======================================
Coverage 68.40% 68.41%
=======================================
Files 1556 1556
Lines 195121 195168 +47
=======================================
+ Hits 133479 133518 +39
- Misses 61642 61650 +8 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Noble Mittal <[email protected]>
Description
Precision for time, datetime and timestamp, is the number of decimals in fractional second.
We missed this in
MAKETIME
Previously, the tests failed for
MAKETIME(1, 2, time'00:00:01.0000')
as the function returnedTIME("01:02:01.000000")
instead ofTIME("01:02:01.0000")
which wasn't correct as there are 4 decimals in the fractional second ontime'00:00:01.0000'
.Related Issue(s)
Checklist
Deployment Notes