forked from opensearch-project/sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Minute_Of_Hour Function As An Alias Of Minute Function #196
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
Merged
GabeFernandez310
merged 15 commits into
integ-add-minute_of_hour-function
from
dev-add-minute_of_hour-function
Jan 5, 2023
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6f5db80
Added Parser Implementation And Tests
GabeFernandez310 3cd8d43
Added Implementation
GabeFernandez310 060e1af
Added Docs
GabeFernandez310 e8083dc
Fixed Checkstyle In Tests
GabeFernandez310 14d1b6d
Fixed Failing Unit Test
GabeFernandez310 677efbc
Fixed A Test Name
GabeFernandez310 890011d
Fixed IT Test
GabeFernandez310 83b93e6
Fixed Functions To Be Private And Modified Documentation
GabeFernandez310 eb4c99e
Fixed Parser
GabeFernandez310 aa19904
Added Support For Date Type
GabeFernandez310 b3ee7b4
Fixed Tests
GabeFernandez310 6deaafb
Fixed documentation
GabeFernandez310 17510af
Refactored Tests
GabeFernandez310 44ec60e
Fixed Spacing
GabeFernandez310 ed4f30b
Removed white space
GabeFernandez310 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1747,6 +1747,7 @@ Description | |
| >>>>>>>>>>> | ||
|
|
||
| Usage: minute(time) returns the minute for time, in the range 0 to 59. | ||
| The `minute_of_hour` function is provided as an alias. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. underscore for a link There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have no section for |
||
|
|
||
| Argument type: STRING/TIME/DATETIME/TIMESTAMP | ||
|
|
||
|
|
@@ -1762,6 +1763,37 @@ Example:: | |
| | 2 | | ||
| +-----------------------------+ | ||
|
|
||
| os> SELECT MINUTE_OF_HOUR((TIME '01:02:03')) | ||
| fetched rows / total rows = 1/1 | ||
| +-------------------------------------+ | ||
| | MINUTE_OF_HOUR((TIME '01:02:03')) | | ||
| |-------------------------------------| | ||
| | 2 | | ||
| +-------------------------------------+ | ||
|
|
||
| os> SELECT MINUTE_OF_HOUR((TIME '01:02:03')) | ||
| fetched rows / total rows = 1/1 | ||
| +-------------------------------------+ | ||
| | MINUTE_OF_HOUR((TIME '01:02:03')) | | ||
| |-------------------------------------| | ||
| | 2 | | ||
| +-------------------------------------+ | ||
|
|
||
| os> SELECT MINUTE_OF_HOUR(datetime('2022-12-20 01:02:03')) | ||
| fetched rows / total rows = 1/1 | ||
| +---------------------------------------------------+ | ||
| | MINUTE_OF_HOUR(datetime('2022-12-20 01:02:03')) | | ||
| |---------------------------------------------------| | ||
| | 2 | | ||
| +---------------------------------------------------+ | ||
|
|
||
| os> SELECT MINUTE_OF_HOUR((TIMESTAMP '2022-12-20 01:02:03')) | ||
| fetched rows / total rows = 1/1 | ||
| +-----------------------------------------------------+ | ||
| | MINUTE_OF_HOUR((TIMESTAMP '2022-12-20 01:02:03')) | | ||
| |-----------------------------------------------------| | ||
| | 2 | | ||
| +-----------------------------------------------------+ | ||
|
|
||
| MONTH | ||
| ----- | ||
|
|
||
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.