mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
300 lines
2.6 KiB
Plaintext
300 lines
2.6 KiB
Plaintext
order by v1 nulls first
|
|
\N
|
|
\N
|
|
\N
|
|
\N
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,4]
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abd
|
|
42
|
|
42
|
|
42
|
|
42
|
|
42
|
|
43
|
|
order by v1 nulls last
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,4]
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abd
|
|
42
|
|
42
|
|
42
|
|
42
|
|
42
|
|
43
|
|
\N
|
|
\N
|
|
\N
|
|
\N
|
|
order by v2 nulls first
|
|
\N
|
|
\N
|
|
\N
|
|
\N
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,4]
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abd
|
|
42
|
|
42
|
|
42
|
|
42
|
|
42
|
|
43
|
|
order by v2 nulls last
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[1,2,4]
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abc
|
|
abd
|
|
42
|
|
42
|
|
42
|
|
42
|
|
42
|
|
43
|
|
\N
|
|
\N
|
|
\N
|
|
\N
|
|
order by v1, v2 nulls first
|
|
[1,2,3] \N
|
|
[1,2,3] [1,2,3]
|
|
[1,2,3] [1,2,4]
|
|
[1,2,3] abc
|
|
[1,2,3] 42
|
|
[1,2,4] [1,2,3]
|
|
abc \N
|
|
abc [1,2,3]
|
|
abc abc
|
|
abc abd
|
|
abc 42
|
|
abd abc
|
|
42 \N
|
|
42 [1,2,3]
|
|
42 abc
|
|
42 42
|
|
42 43
|
|
43 42
|
|
\N \N
|
|
\N [1,2,3]
|
|
\N abc
|
|
\N 42
|
|
order by v1, v2 nulls last
|
|
[1,2,3] [1,2,3]
|
|
[1,2,3] [1,2,4]
|
|
[1,2,3] abc
|
|
[1,2,3] 42
|
|
[1,2,3] \N
|
|
[1,2,4] [1,2,3]
|
|
abc [1,2,3]
|
|
abc abc
|
|
abc abd
|
|
abc 42
|
|
abc \N
|
|
abd abc
|
|
42 [1,2,3]
|
|
42 abc
|
|
42 42
|
|
42 43
|
|
42 \N
|
|
43 42
|
|
\N [1,2,3]
|
|
\N abc
|
|
\N 42
|
|
\N \N
|
|
order by v2, v1 nulls first
|
|
\N [1,2,3]
|
|
[1,2,3] [1,2,3]
|
|
[1,2,4] [1,2,3]
|
|
abc [1,2,3]
|
|
42 [1,2,3]
|
|
[1,2,3] [1,2,4]
|
|
\N abc
|
|
[1,2,3] abc
|
|
abc abc
|
|
abd abc
|
|
42 abc
|
|
abc abd
|
|
\N 42
|
|
[1,2,3] 42
|
|
abc 42
|
|
42 42
|
|
43 42
|
|
42 43
|
|
\N \N
|
|
[1,2,3] \N
|
|
abc \N
|
|
42 \N
|
|
order by v2, v1 nulls last
|
|
[1,2,3] [1,2,3]
|
|
[1,2,4] [1,2,3]
|
|
abc [1,2,3]
|
|
42 [1,2,3]
|
|
\N [1,2,3]
|
|
[1,2,3] [1,2,4]
|
|
[1,2,3] abc
|
|
abc abc
|
|
abd abc
|
|
42 abc
|
|
\N abc
|
|
abc abd
|
|
[1,2,3] 42
|
|
abc 42
|
|
42 42
|
|
43 42
|
|
\N 42
|
|
42 43
|
|
[1,2,3] \N
|
|
abc \N
|
|
42 \N
|
|
\N \N
|
|
v1 = v2
|
|
[1,2,3] [1,2,3] 1
|
|
[1,2,3] [1,2,4] 0
|
|
[1,2,3] abc 0
|
|
[1,2,3] 42 0
|
|
[1,2,3] \N 0
|
|
[1,2,4] [1,2,3] 0
|
|
abc [1,2,3] 0
|
|
abc abc 1
|
|
abc abd 0
|
|
abc 42 0
|
|
abc \N 0
|
|
abd abc 0
|
|
42 [1,2,3] 0
|
|
42 abc 0
|
|
42 42 1
|
|
42 43 0
|
|
42 \N 0
|
|
43 42 0
|
|
\N [1,2,3] 0
|
|
\N abc 0
|
|
\N 42 0
|
|
\N \N 1
|
|
v1 < v2
|
|
[1,2,3] [1,2,3] 0
|
|
[1,2,3] [1,2,4] 1
|
|
[1,2,3] abc 1
|
|
[1,2,3] 42 1
|
|
[1,2,3] \N 1
|
|
[1,2,4] [1,2,3] 0
|
|
abc [1,2,3] 0
|
|
abc abc 0
|
|
abc abd 1
|
|
abc 42 1
|
|
abc \N 1
|
|
abd abc 0
|
|
42 [1,2,3] 0
|
|
42 abc 0
|
|
42 42 0
|
|
42 43 1
|
|
42 \N 1
|
|
43 42 0
|
|
\N [1,2,3] 0
|
|
\N abc 0
|
|
\N 42 0
|
|
\N \N 0
|
|
v1 <= v2
|
|
[1,2,3] [1,2,3] 1
|
|
[1,2,3] [1,2,4] 1
|
|
[1,2,3] abc 1
|
|
[1,2,3] 42 1
|
|
[1,2,3] \N 1
|
|
[1,2,4] [1,2,3] 0
|
|
abc [1,2,3] 0
|
|
abc abc 1
|
|
abc abd 1
|
|
abc 42 1
|
|
abc \N 1
|
|
abd abc 0
|
|
42 [1,2,3] 0
|
|
42 abc 0
|
|
42 42 1
|
|
42 43 1
|
|
42 \N 1
|
|
43 42 0
|
|
\N [1,2,3] 0
|
|
\N abc 0
|
|
\N 42 0
|
|
\N \N 1
|
|
v1 > v2
|
|
[1,2,3] [1,2,3] 0
|
|
[1,2,3] [1,2,4] 0
|
|
[1,2,3] abc 0
|
|
[1,2,3] 42 0
|
|
[1,2,3] \N 0
|
|
[1,2,4] [1,2,3] 1
|
|
abc [1,2,3] 1
|
|
abc abc 0
|
|
abc abd 0
|
|
abc 42 0
|
|
abc \N 0
|
|
abd abc 1
|
|
42 [1,2,3] 1
|
|
42 abc 1
|
|
42 42 0
|
|
42 43 0
|
|
42 \N 0
|
|
43 42 1
|
|
\N [1,2,3] 1
|
|
\N abc 1
|
|
\N 42 1
|
|
\N \N 0
|
|
v1 >= v2
|
|
[1,2,3] [1,2,3] 1
|
|
[1,2,3] [1,2,4] 1
|
|
[1,2,3] abc 1
|
|
[1,2,3] 42 1
|
|
[1,2,3] \N 1
|
|
[1,2,4] [1,2,3] 1
|
|
abc [1,2,3] 1
|
|
abc abc 1
|
|
abc abd 1
|
|
abc 42 1
|
|
abc \N 1
|
|
abd abc 1
|
|
42 [1,2,3] 1
|
|
42 abc 1
|
|
42 42 1
|
|
42 43 1
|
|
42 \N 1
|
|
43 42 1
|
|
\N [1,2,3] 1
|
|
\N abc 1
|
|
\N 42 1
|
|
\N \N 1
|