Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Dec 19, 2024
1 parent d0f566b commit f1d4484
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ suite("test_convert_tz") {
}
explain {
sql "SELECT * FROM test_convert_tz WHERE convert_tz(timestamp, 'Asia/Shanghai', 'Europe/Paris') > '2021-01-01';";
contains("partitions=2/3 (p2,p3)")
contains("partitions=3/3 (p1,p2,p3)")
}

explain {
sql """SELECT * FROM test_convert_tz WHERE convert_tz(timestamp, 'Asia/Shanghai', 'Europe/Paris') < '2021-02-24'
and convert_tz(timestamp, 'Asia/Shanghai', 'Europe/Paris') > '2021-01-01';"""
contains("partitions=2/3 (p2,p3)")
contains("partitions=3/3 (p1,p2,p3)")
}

explain {
Expand Down Expand Up @@ -93,7 +93,7 @@ suite("test_convert_tz") {
}
explain {
sql "SELECT * FROM test_convert_tz WHERE not convert_tz(timestamp, 'Asia/Shanghai', 'Europe/Paris') <= '2021-01-01';";
contains("partitions=2/3 (p2,p3)")
contains("partitions=3/3 (p1,p2,p3)")
}
}
}

0 comments on commit f1d4484

Please sign in to comment.