mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
better
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
This commit is contained in:
parent
009c0dc136
commit
500e8e505d
@ -1 +1 @@
|
||||
2124-01-01 Hello World
|
||||
1
|
||||
|
@ -1,6 +1,6 @@
|
||||
CREATE table if not exists table_with_dot_column (date Date, regular_column String, `other_column.2` String) ENGINE = MergeTree() ORDER BY date;
|
||||
INSERT INTO table_with_dot_column select '2020-01-01', 'Hello', 'World';
|
||||
INSERT INTO table_with_dot_column select '2124-01-01', 'Hello', 'World';
|
||||
CREATE ROW POLICY IF NOT EXISTS row_policy ON table_with_dot_column USING toDate(date) >= '2123-01-01' TO ALL;
|
||||
SELECT * FROM table_with_dot_column;
|
||||
CREATE TABLE IF NOT EXISTS table_with_dot_column (date Date, regular_column String, `other_column.2` String) ENGINE = MergeTree() ORDER BY date;
|
||||
INSERT INTO table_with_dot_column SELECT '2020-01-01', 'Hello', 'World';
|
||||
INSERT INTO table_with_dot_column SELECT toDate(now() + 48*3600), 'Hello', 'World';
|
||||
CREATE ROW POLICY IF NOT EXISTS row_policy ON table_with_dot_column USING toDate(date) >= today() - 30 TO ALL;
|
||||
SELECT count(*) FROM table_with_dot_column;
|
||||
DROP TABLE table_with_dot_column;
|
||||
|
Loading…
Reference in New Issue
Block a user