Update test.

This commit is contained in:
Nikolai Kochetov 2021-04-16 12:43:11 +03:00
parent 8d8e57615c
commit 6fe3470893
2 changed files with 52 additions and 38 deletions

View File

@ -1,61 +1,75 @@
ReadFromMergeTree
ReadType: Default
Indexes:
None
Parts: 5
Granules: 12
MinMax
Parts: 4
Granules: 11
Keys:
y
Description: (y in [1, +inf))
Parts: 4/5
Granules: 11/12
Partition
Parts: 3
Granules: 10
Keys:
y
bitAnd(z, 3)
Description: and((bitAnd(z, 3) not in [1, 1]), (y in [1, +inf)))
Parts: 3/4
Granules: 10/11
PrimaryKey
Parts: 2
Granules: 6
Keys:
x
y
Description: and((x in [11, +inf)), (y in [1, +inf)))
Parts: 2/3
Granules: 6/10
Skip
Name: t_minmax
Parts: 1
Granules: 2
Description: minmax GRANULARITY 2
Parts: 1/2
Granules: 2/6
Skip
Name: t_set
Parts: 1
Granules: 1
Description: set GRANULARITY 2
Parts: 1/1
Granules: 1/2
Parts: 1
Granules: 1
-----------------
ReadFromMergeTree
ReadType: InOrder
Indexes:
None
Parts: 5
Granules: 12
MinMax
Description: unknown
Parts: 5
Granules: 12
Description: true
Parts: 5/5
Granules: 12/12
Partition
Description: unknown
Parts: 5
Granules: 12
Description: true
Parts: 5/5
Granules: 12/12
PrimaryKey
Description: (column 0 in [16, +inf))
Parts: 1
Granules: 3
Keys:
x
Description: (x in [16, +inf))
Parts: 1/5
Granules: 3/12
Parts: 1
Granules: 3
-----------------
ReadFromMergeTree
ReadType: InReverseOrder
Indexes:
None
Parts: 5
Granules: 12
MinMax
Description: unknown
Parts: 5
Granules: 12
Description: true
Parts: 5/5
Granules: 12/12
Partition
Description: unknown
Parts: 5
Granules: 12
Description: true
Parts: 5/5
Granules: 12/12
PrimaryKey
Description: (column 0 in [16, +inf))
Parts: 1
Granules: 3
Keys:
x
Description: (x in [16, +inf))
Parts: 1/5
Granules: 3/12
Parts: 1
Granules: 3

View File

@ -9,7 +9,7 @@ $CLICKHOUSE_CLIENT -q "insert into test_index select number, number > 3 ? 3 : nu
$CLICKHOUSE_CLIENT -q "
explain actions = 1 select *, _part from test_index where t % 19 = 16 and y > 0 and bitAnd(z, 3) != 1 and x > 10 and t % 20 > 14;
" | grep -A 100 "ReadFromMergeTree" | grep -v "Description"
" | grep -A 100 "ReadFromMergeTree" # | grep -v "Description"
echo "-----------------"