mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
15 lines
407 B
SQL
15 lines
407 B
SQL
drop table if exists t_tuple_sparse;
|
|
|
|
create table t_tuple_sparse (a UInt64, b UInt64)
|
|
ENGINE = MergeTree ORDER BY tuple()
|
|
SETTINGS ratio_of_defaults_for_sparse_serialization = 0.0;
|
|
|
|
insert into t_tuple_sparse values (0, 0);
|
|
|
|
select (a, b) from t_tuple_sparse;
|
|
select (a, 0) from t_tuple_sparse;
|
|
select (a, 1) from t_tuple_sparse;
|
|
select (a, NULL) from t_tuple_sparse;
|
|
|
|
drop table if exists t_tuple_sparse;
|