This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 186
Support date and time functions: date_add, date_sub, day, dayname, dayofweek, dayofyear, from_days, hour, microsecond, minute, month, monthname, quarter, second, subdate, time_to_sec, to_days #746
Merged
dai-chen
merged 46 commits into
opendistro-for-elasticsearch:develop
from
rupal-bq:date-time-functions
Sep 29, 2020
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
db82e29
add functions day, month, quarter, year
e46da70
fix build error
88a878b
fix doctest error
63ea788
fix doctest build error
7551dc8
fix doctest
a673fe2
add dayofmonth()
7c70c33
add dayofyear()
d87f8f4
add dayofweek()
242403c
fix dayofweek logic & add unit test
be7051d
fix doctest for dayofweek()
6834c10
add dayname
ee02527
add monthname
8ab2f63
fix checkstyle build error
458c34a
fix build error
e42aac1
fix doctest for monthname
960783b
add hour()
4d355b2
add minute()
0881f24
add second
d199d54
add microsecond
c88a6dd
fix datetime & timestamp issue for microsecond
4dd0db0
add time_to_sec
988d177
add subdate & date_sub
9c1d96b
Merge branch 'develop' of https://github.com/rupal-bq/sql into date-t…
693211a
fix doctest error
36449f7
fix build error
048d5d6
add KeywordsCanBeId for dayofweek
c0593d9
add to_days
7ee0dbc
add from_days()
7764a0d
arrange by alphabetical order
18a6a84
add manual IT
7054a4b
add string input for date functions
7e4c726
fix microsecond
f0a16ce
update doc
b757335
add date_add
1a44c36
address PR comments
20acde3
update tests & doc
a51f2f7
Merge branch 'develop' of https://github.com/rupal-bq/sql into date-t…
42c7222
fix doc format
0f3894a
update tests for adddate
a73a8e9
move string conversion to ExprStringValue
ea9b190
add string type in doc
61ac4e5
Merge branch 'develop' of https://github.com/rupal-bq/sql into date-t…
dc70cd6
add test cases for datetime function in ExpeStringValue
d93f02b
Merge branch 'develop' of https://github.com/rupal-bq/sql into date-t…
c001615
removing implicit def for keyword in parser
104e6b9
add dayofweek
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 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 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 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 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
Oops, something went wrong.
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.
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.
could you add the test cases for these functions?
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.
added test cases for date-time functions in ExprStringValue