Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Dec 24, 2024
1 parent 1475058 commit 9ada9e4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ suite("always_mono_func") {
}
explain {
sql """select * from always_mono_func where to_monday(dt) ='2019-01-01' """
contains("partitions=1/5 (p4)")
contains("partitions=2/5 (p1,p4)")
}
explain {
sql """select * from always_mono_func where to_monday(dt) >='2018-01-01' and to_monday(dt) <'2019-01-01' """
contains("partitions=3/5 (p2,p3,p4)")
contains("partitions=4/5 (p1,p2,p3,p4)")
}
explain {
sql """ select * from always_mono_func where to_monday(dt) >= "2019-01-01" """
contains("partitions=2/5 (p4,p5)")
contains("partitions=3/5 (p1,p4,p5)")
}
// to_date
explain {
Expand Down Expand Up @@ -203,7 +203,7 @@ suite("always_mono_func") {

explain {
sql """select * from always_mono_func where date_format(to_monday(dt), 'yyyyMMdd') >= "20190101" """
contains("partitions=2/5 (p4,p5)")
contains("partitions=3/5 (p1,p4,p5)")
}
explain {
sql """select * from always_mono_func where date_format(last_day(to_monday(dt)), 'yyyyMMdd') < "20190101" """
Expand All @@ -216,6 +216,6 @@ suite("always_mono_func") {

explain {
sql """select * from always_mono_func where date_format(date_trunc(last_day(to_monday(dt)),'month'), 'yyyyMMdd') > "20190101" """
contains("partitions=2/5 (p4,p5)")
contains("partitions=3/5 (p1,p4,p5)")
}
}

0 comments on commit 9ada9e4

Please sign in to comment.