Skip to content

Commit

Permalink
Merge pull request ClickHouse#64245 from den-crane/test/issue_45804
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov authored May 24, 2024
2 parents 6c06772 + c07c9d4 commit dddcfaa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1
1
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;

0 comments on commit dddcfaa

Please sign in to comment.