Added test [#METR-19266].

This commit is contained in:
Alexey Milovidov 2016-12-30 08:17:55 +03:00
parent baf29f5c48
commit 0323a74942
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,15 @@
┌─tuple─────────┐
│ (0,NULL,NULL) │
│ (1,1,'1') │
│ (2,2,NULL) │
│ (3,NULL,'1') │
│ (4,1,NULL) │
│ (5,2,'1') │
│ (6,NULL,NULL) │
│ (7,1,'1') │
│ (8,2,NULL) │
│ (9,NULL,'1') │
└───────────────┘
┌──x─┬─y──────┐
│ \N │ (NULL) │
└────┴────────┘

View File

@ -0,0 +1,2 @@
SELECT (number, nullIf(number % 3, 0), toString(nullIf(number % 2, 0))) AS tuple FROM system.numbers LIMIT 10 FORMAT PrettyCompactNoEscapes;
SELECT NULL AS x, tuple(NULL) AS y FORMAT PrettyCompactNoEscapes;