mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
70 lines
677 B
Plaintext
70 lines
677 B
Plaintext
Zero offset
|
|
0 0
|
|
1 1
|
|
2 2
|
|
Nullable values
|
|
\N 0 \N
|
|
\N 1 2
|
|
2 2 \N
|
|
Result with different type
|
|
0 1
|
|
1 2
|
|
2 -10
|
|
Offset > block
|
|
0 0
|
|
1 0
|
|
2 0
|
|
Abs(Offset) > block
|
|
0 0
|
|
1 0
|
|
2 0
|
|
Positive offset
|
|
0 1
|
|
1 2
|
|
2 0
|
|
Negative offset
|
|
0 1
|
|
1 2
|
|
2 0
|
|
Positive offset with defaults
|
|
0 2
|
|
1 3
|
|
2 12
|
|
3 13
|
|
Negative offset with defaults
|
|
0 10
|
|
1 11
|
|
2 0
|
|
3 1
|
|
Positive offset with const defaults
|
|
0 1
|
|
1 2
|
|
2 1000
|
|
Negative offset with const defaults
|
|
0 1000
|
|
1 0
|
|
2 1
|
|
Dynamic column and offset, out of bounds
|
|
0 0 0
|
|
1 2 3
|
|
2 4 20
|
|
3 6 30
|
|
Dynamic column and offset, negative
|
|
0 0 0
|
|
1 -2 10
|
|
2 -4 20
|
|
3 -6 30
|
|
4 -8 40
|
|
5 -10 50
|
|
Dynamic column and offset, without defaults
|
|
0 4 4
|
|
1 2 3
|
|
2 0 2
|
|
3 -2 1
|
|
4 -4 0
|
|
5 -6 0
|
|
Constant column
|
|
0 0
|
|
1 0
|
|
2 0
|