Repository navigation
Update TIMESTAMP function - #139
Merged
Merged
Conversation
Yury-Fridlyand
requested review from
GabeFernandez310,
GumpacG,
MaxKsyunz,
MitchellGale,
acarbonetto and
forestmvey
October 20, 2022 23:02
This comment was marked as spam.
This comment was marked as spam.
TIMESTAMP functionTIMESTAMP function
Yury-Fridlyand
force-pushed
the
integ-update-timestamp
branch
from
December 13, 2022 02:25
9d3f6be to
e6843e2
Compare
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
…orresponding tests. Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Yury-Fridlyand
force-pushed
the
dev-update-timestamp
branch
from
December 13, 2022 03:30
557b0c1 to
84a1d4d
Compare
Signed-off-by: Yury-Fridlyand <[email protected]>
TIMESTAMP functionTIMESTAMP function
|
|
You can also reference opensearch-project#722 as part of this PR in that this PR does partially fix opensearch-project#722 |
margarit-h
approved these changes
Dec 15, 2022
acarbonetto
approved these changes
Dec 15, 2022
acarbonetto
left a comment
There was a problem hiding this comment.
Quick question about getting timestampValue
| FunctionProperties functionProperties) { | ||
| return value instanceof ExprTimeValue | ||
| ? ((ExprTimeValue) value).timestampValue(functionProperties) | ||
| : value.timestampValue(); |
There was a problem hiding this comment.
Oooh. I do not like this logic is required here.
It would be better if the logic was in Expr*Value classes.
Author
There was a problem hiding this comment.
Can you give an example, please?
Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
MitchellGale
approved these changes
Dec 15, 2022
6 tasks done
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Depends on #132/opensearch-project#1194
I referred to MySQL docs and tried to reproduce MySQL v.8.0.30 behavior as a reference.
Updated function:
TIMESTAMPSignatures
Notes:
Unlike MySQL,
TIMESTAMPfunction returns aTIMESTAMPobject (Instant), not aDATETIME.Test queries:
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.