File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
tests/suites/0_stateless/20+_others Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ The probe table should consist of 2 blocks
2
+ 2
3
+ runtime range filter should work, one of the blocks should be pruned by range filter
4
+ ├── parts pruned by runtime range filter: 1
5
+ runtime bloom filter should work, another block should be pruned by bloom filter
6
+ ├── parts pruned by runtime range filter: 1
7
+ ├── parts pruned by runtime bloom filter: 1
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ CURDIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
4
+ . " $CURDIR " /../../../shell_env.sh
5
+
6
+ echo " create or replace database rt_bloom" | $BENDSQL_CLIENT_CONNECT
7
+
8
+ echo " create table rt_bloom.probe(c uint64) as select * from numbers(100000)" | $BENDSQL_CLIENT_CONNECT
9
+ echo " create table rt_bloom.build(c uint64)" | $BENDSQL_CLIENT_CONNECT
10
+
11
+ echo " The probe table should consist of 2 blocks"
12
+ echo " select block_count from fuse_snapshot('rt_bloom','probe')" | $BENDSQL_CLIENT_CONNECT
13
+
14
+
15
+ echo " insert into rt_bloom.build values(50)" | $BENDSQL_CLIENT_CONNECT
16
+
17
+
18
+ echo " runtime range filter should work, one of the blocks should be pruned by range filter"
19
+ echo " explain analyze select * from rt_bloom.probe inner join rt_bloom.build on probe.c = build.c " \
20
+ | $BENDSQL_CLIENT_CONNECT | grep " parts pruned by"
21
+
22
+
23
+
24
+ echo " delete from rt_bloom.probe where c = 50" | $BENDSQL_CLIENT_CONNECT ;
25
+ echo " runtime bloom filter should work, another block should be pruned by bloom filter"
26
+ echo " explain analyze select * from rt_bloom.probe inner join rt_bloom.build on probe.c = build.c " \
27
+ | $BENDSQL_CLIENT_CONNECT | grep " parts pruned by"
28
+
29
+ echo " DROP TABLE rt_bloom.probe" | $BENDSQL_CLIENT_CONNECT
30
+ echo " DROP TABLE rt_bloom.build" | $BENDSQL_CLIENT_CONNECT
31
+ echo " drop database rt_bloom" | $BENDSQL_CLIENT_CONNECT
You can’t perform that action at this time.
0 commit comments