ClickHouse/tests/queries/0_stateless/01273_lc_fixed_string_field.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
314 B
MySQL
Raw Normal View History

2020-05-07 13:14:16 +00:00
CREATE TABLE t
(
`d` Date,
`s` LowCardinality(FixedString(3)),
`c` UInt32
)
ENGINE = SummingMergeTree()
PARTITION BY d
ORDER BY (d, s);
INSERT INTO t (d, s, c) VALUES ('2020-01-01', 'ABC', 1);
INSERT INTO t (d, s, c) VALUES ('2020-01-01', 'ABC', 2);
OPTIMIZE TABLE t;
SELECT * FROM t;
2020-11-11 15:29:36 +00:00
DROP TABLE t;