You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate parquet files with slightly different schema
(feel free to skip this step if you don't intend to modify included t.v1.parquet & t.v2.parquet)
# optional: open shell containing `clickhouse`
devbox shell
clickhouse local -q $"CREATE TABLE t (id Int32, toq String, il Int32, d Int32) ORDER BY id;INSERT INTO t VALUES (1, 'foo1', 4, 7), (2, 'foo2', 5, 8), (3, 'foo3', 6, 9);SELECT * FROM t INTO OUTFILE 't.v1.parquet' TRUNCATE FORMAT Parquet;ALTER TABLE t RENAME COLUMN toq TO q;ALTER TABLE t ALTER COLUMN il TYPE Int64;ALTER TABLE t DROP COLUMN d;ALTER TABLE t ADD COLUMN a Nullable(String);SELECT * FROM t INTO OUTFILE 't.v2.parquet' TRUNCATE FORMAT Parquet;SELECT * FROM 't.v1.parquet';SELECT * FROM 't.v2.parquet';"