forked from StarRocks/starrocks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] support iso week function (StarRocks#20511) (StarRocks#…
…22773) Signed-off-by: qmengss <707549024@qq.com>
- Loading branch information
1 parent
e39051c
commit 827935c
Showing
8 changed files
with
107 additions
and
0 deletions.
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
28 changes: 28 additions & 0 deletions
28
docs/sql-reference/sql-functions/date-time-functions/week_iso.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# week_iso | ||
|
||
## Description | ||
|
||
Returns the ISO standard week number for a given date within a year. | ||
|
||
The date parameter must be of the DATE or DATETIME type. | ||
|
||
## Syntax | ||
|
||
```Haskell | ||
INT WEEK_ISO(DATETIME date) | ||
``` | ||
|
||
## Examples | ||
|
||
```Plain Text | ||
MySQL > select week_iso('2008-02-20 00:00:00'); | ||
+-----------------------------------+ | ||
| week_iso('2008-02-20 00:00:00') | | ||
+-----------------------------------+ | ||
| 8 | | ||
+-----------------------------------+ | ||
``` | ||
|
||
## keyword | ||
|
||
WEEK_ISO |
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