Repository navigation
Add Hour_Of_Day Function As An Alias Of Hour - #195
GabeFernandez310 merged 9 commits into
Conversation
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
Codecov Report
@@ Coverage Diff @@
## integ-add-hour_of_day-function #195 +/- ##
=================================================================
Coverage ? 95.82%
Complexity ? 3542
=================================================================
Files ? 356
Lines ? 9400
Branches ? 674
=================================================================
Hits ? 9008
Misses ? 334
Partials ? 58
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: GabeFernandez310 <[email protected]>
| | CURRENT_TIME | ||
| | CURRENT_TIMESTAMP | ||
| | DAY_OF_YEAR | ||
| | HOUR_OF_DAY |
There was a problem hiding this comment.
datetimeConstantLiteral is a function which could be called without () too, e.g.
select HOUR_OF_DAY, HOUR_OF_DAY();HOUR_OF_DAY should be in this list. DAY_OF_YEAR, WEEK_OF_YEAR and MONTH_OF_YEAR too, actually. See dateTimeFunctionName.
There was a problem hiding this comment.
HOUR_OF_DAYshould be in this list.DAY_OF_YEAR,WEEK_OF_YEARandMONTH_OF_YEARtoo, actually. See dateTimeFunctionName.
They are currently in this list. Did you mean to say that they shouldn't be in this list?
There was a problem hiding this comment.
Right, sorry. My mistake, but you understand everything correct.
There was a problem hiding this comment.
No worries. Thanks Yury! Have a good vacation!
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
Signed-off-by: GabeFernandez310 <[email protected]>
| >>>>>>>>>>> | ||
|
|
||
| Usage: hour(time) extracts the hour value for time. Different from the time of day value, the time value has a large range and can be greater than 23, so the return value of hour(time) can be also greater than 23. | ||
| The function `hour_of_day` is also provided as an alias. |
There was a problem hiding this comment.
do we need an underscore to use it as a link?
There was a problem hiding this comment.
Yes we do, but it does not have its own entry in the doc so I don't believe it would be linking to anything. Should I just remove the backticks altogether?
Signed-off-by: GabeFernandez310 <[email protected]>
Description
Adds support for the
hour_of_dayfunction as an alias for thehourfunction which currently exists in opensearchIssues Resolved
#722
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.