mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
41 lines
2.1 KiB
SQL
41 lines
2.1 KiB
SQL
DROP TABLE IF EXISTS nullable_00457;
|
|
|
|
CREATE TABLE nullable_00457 (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = Log;
|
|
|
|
INSERT INTO nullable_00457 SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10;
|
|
SELECT * FROM nullable_00457 ORDER BY s;
|
|
SELECT s FROM nullable_00457 ORDER BY s;
|
|
SELECT ns FROM nullable_00457 ORDER BY s;
|
|
SELECT narr FROM nullable_00457 ORDER BY s;
|
|
SELECT s, narr FROM nullable_00457 ORDER BY s;
|
|
|
|
INSERT INTO nullable_00457 SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10;
|
|
|
|
DROP TABLE IF EXISTS nullable_00457;
|
|
|
|
CREATE TABLE nullable_00457 (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = TinyLog;
|
|
|
|
INSERT INTO nullable_00457 SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10;
|
|
SELECT * FROM nullable_00457 ORDER BY s;
|
|
SELECT s FROM nullable_00457 ORDER BY s;
|
|
SELECT ns FROM nullable_00457 ORDER BY s;
|
|
SELECT narr FROM nullable_00457 ORDER BY s;
|
|
SELECT s, narr FROM nullable_00457 ORDER BY s;
|
|
|
|
INSERT INTO nullable_00457 SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10;
|
|
|
|
DROP TABLE IF EXISTS nullable_00457;
|
|
|
|
CREATE TABLE nullable_00457 (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = StripeLog;
|
|
|
|
INSERT INTO nullable_00457 SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10;
|
|
SELECT * FROM nullable_00457 ORDER BY s;
|
|
SELECT s FROM nullable_00457 ORDER BY s;
|
|
SELECT ns FROM nullable_00457 ORDER BY s;
|
|
SELECT narr FROM nullable_00457 ORDER BY s;
|
|
SELECT s, narr FROM nullable_00457 ORDER BY s;
|
|
|
|
INSERT INTO nullable_00457 SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10;
|
|
|
|
DROP TABLE nullable_00457;
|