Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport #29454 to 21.9: Fix logical error in functions greatest/least
- Loading branch information
robot-clickhouse
committed
Sep 28, 2021
1 parent
453aa24
commit 250b711
Showing
4 changed files
with
25 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
20 changes: 20 additions & 0 deletions
20
tests/queries/0_stateless/02032_short_circuit_least_greatest_bug.reference
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,20 @@ | ||
0 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
1 | ||
0 | ||
1 | ||
0 | ||
0 | ||
0 | ||
1 | ||
0 | ||
1 | ||
0 | ||
0 |
2 changes: 2 additions & 0 deletions
2
tests/queries/0_stateless/02032_short_circuit_least_greatest_bug.sql
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,2 @@ | ||
select 1 and greatest(number % 2, number % 3) from numbers(10); | ||
select 1 and least(number % 2, number % 3) from numbers(10); |