Add today alias for current_date#8423
Conversation
2fea7a8 to
56b5373
Compare
comphead
left a comment
There was a problem hiding this comment.
Thanks @smallzhongfeng for this PR
Please add also tests and user documentation scalar_functions.md
current_datetoday alias for current_date
Thanks. Updated. |
Please add Also the tests are needed, we can likely use |
|
I add a test, because the function |
| true | ||
|
|
||
| query B | ||
| select now() = current_date(); |
There was a problem hiding this comment.
Could you add it for today as well?
|
Thanks @smallzhongfeng |
alamb
left a comment
There was a problem hiding this comment.
Thank you again @smallzhongfeng -- this looks great
Co-authored-by: Alex Huang <huangweijun1001@gmail.com>
|
Thank you @Weijun-H |
Which issue does this PR close?
Closes #.
Rationale for this change
ck support udf
todayhttps://clickhouse.com/docs/en/sql-reference/functions/date-time-functions#:~:text=Accepts%20zero%20arguments%20and%20returns%20the%20current%20date%20at%20one%20of%20the%20moments%20of%20query%20analysis.%20The%20same%20as%20%E2%80%98toDate(now())%E2%80%99.duckdb https://duckdb.org/docs/archive/0.9.2/sql/functions/date#:~:text=1992%2D04%2D01-,today(),-Current%20date%20(start
What changes are included in this PR?
Add a new name for
current_dateAre these changes tested?
Are there any user-facing changes?