forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#64245 from den-crane/test/issue_45804
test for ClickHouse#45804
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
tests/queries/0_stateless/00331_final_and_prewhere_condition_ver_column.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,2 @@ | ||
1 | ||
1 |
16 changes: 16 additions & 0 deletions
16
tests/queries/0_stateless/00331_final_and_prewhere_condition_ver_column.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,16 @@ | ||
SET allow_experimental_analyzer = 1; | ||
|
||
-- https://github.com/ClickHouse/ClickHouse/issues/45804 | ||
|
||
CREATE TABLE myRMT( | ||
key Int64, | ||
someCol String, | ||
ver DateTime | ||
) ENGINE = ReplacingMergeTree(ver) | ||
ORDER BY key as SELECT 1, 'test', '2020-01-01'; | ||
|
||
SELECT count(ver) FROM myRMT FINAL PREWHERE ver > '2000-01-01'; | ||
|
||
SELECT count() FROM myRMT FINAL PREWHERE ver > '2000-01-01'; | ||
|
||
DROP TABLE myRMT; |