ClickHouse/tests/queries/0_stateless/01669_columns_declaration_serde.sql

41 lines
958 B
MySQL
Raw Normal View History

2021-01-23 01:11:18 +00:00
CREATE TEMPORARY TABLE test ("\\" String DEFAULT '\r\n\t\\' || '
');
INSERT INTO test VALUES ('Hello, world!');
INSERT INTO test ("\\") VALUES ('Hello, world!');
SELECT * FROM test;
DROP TEMPORARY TABLE test;
DROP TABLE IF EXISTS test;
CREATE TABLE test (x UInt64, "\\" String DEFAULT '\r\n\t\\' || '
') ENGINE = MergeTree ORDER BY x;
INSERT INTO test (x) VALUES (1);
SELECT * FROM test;
DROP TABLE test;
2021-01-23 01:26:03 +00:00
DROP TABLE IF EXISTS test_r1;
DROP TABLE IF EXISTS test_r2;
CREATE TABLE test_r1 (x UInt64, "\\" String DEFAULT '\r\n\t\\' || '
2021-02-13 22:12:10 +00:00
') ENGINE = ReplicatedMergeTree('/clickhouse/test_01669', 'r1') ORDER BY "\\";
2021-01-23 01:26:03 +00:00
INSERT INTO test_r1 ("\\") VALUES ('\\');
CREATE TABLE test_r2 (x UInt64, "\\" String DEFAULT '\r\n\t\\' || '
2021-02-13 22:12:10 +00:00
') ENGINE = ReplicatedMergeTree('/clickhouse/test_01669', 'r2') ORDER BY "\\";
2021-01-23 01:26:03 +00:00
SYSTEM SYNC REPLICA test_r2;
SELECT '---';
SELECT * FROM test_r1;
SELECT '---';
SELECT * FROM test_r2;
DROP TABLE test_r1;
DROP TABLE test_r2;