-
Notifications
You must be signed in to change notification settings - Fork 0
Add Day_Of_Week Function As An Alias Of DayOfWeek #190
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
Changes from all commits
7832301
4274273
4a6f083
4853304
9a061ea
f044830
e571bf0
14279ed
0f08311
0db6299
2364e68
996d300
8daa4ba
20150cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1434,20 +1434,21 @@ Description | |
|
|
||
| Usage: dayofweek(date) returns the weekday index for date (1 = Sunday, 2 = Monday, …, 7 = Saturday). | ||
|
|
||
| The `day_of_week` function is also 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. do we need an underscore to use this as an alias?
Author
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. Yes you do need the underscores. Both |
||
|
|
||
| Argument type: STRING/DATE/DATETIME/TIMESTAMP | ||
|
|
||
| Return type: INTEGER | ||
|
|
||
| Example:: | ||
|
|
||
| os> SELECT DAYOFWEEK(DATE('2020-08-26')) | ||
| os> SELECT DAYOFWEEK('2020-08-26'), DAY_OF_WEEK('2020-08-26') | ||
| fetched rows / total rows = 1/1 | ||
| +---------------------------------+ | ||
| | DAYOFWEEK(DATE('2020-08-26')) | | ||
| |---------------------------------| | ||
| | 4 | | ||
| +---------------------------------+ | ||
|
|
||
| +---------------------------+-----------------------------+ | ||
| | DAYOFWEEK('2020-08-26') | DAY_OF_WEEK('2020-08-26') | | ||
| |---------------------------+-----------------------------| | ||
| | 4 | 4 | | ||
| +---------------------------+-----------------------------+ | ||
|
|
||
|
|
||
| DAYOFYEAR | ||
|
|
||
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.
Try
@ParametrizedTestand/or split into different tests and/or useassertAllThere 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.
Fixed in 20150cf