Skip to content

Commit

Permalink
[Enhancement] support iso week function, add sql-test null and empty-…
Browse files Browse the repository at this point in the history
…string case (StarRocks#20511)

Signed-off-by: qmengss <707549024@qq.com>
  • Loading branch information
qmengss committed May 4, 2023
1 parent 7757560 commit 31adca7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/sql/test_time_fn/R/test_time_fn
Expand Up @@ -696,3 +696,13 @@ select week_iso("2023-01-03");
-- result:
1
-- !result
select week_iso("");
-- result:
NULL
-- !result
select week_iso(NULL);
-- result:
NULL
-- !result


2 changes: 2 additions & 0 deletions test/sql/test_time_fn/T/test_time_fn
Expand Up @@ -187,3 +187,5 @@ select d1, dow_2, previous_day(d1, dow_2) from previous_day_test a join previous
select week_iso("2023-01-01");
select week_iso("2023-01-02");
select week_iso("2023-01-03");
select week_iso("");
select week_iso(NULL);

0 comments on commit 31adca7

Please sign in to comment.