Skip to content

Commit e9d6d67

Browse files
committed
tweak stateful test
1 parent 5a4858e commit e9d6d67

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
The probe table should consist of 2 blocks
22
2
33
runtime range filter should work, one of the blocks should be pruned by range filter
4-
├── parts pruned by runtime range filter: 1
4+
├── parts pruned by runtime range filter: 1
55
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
6+
├── parts pruned by runtime range filter: 1

tests/suites/1_stateful/02_query/02_0006_runtime_probe_side_bloom_pruning.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
99

1010
echo "create or replace database rt_bloom" | $BENDSQL_CLIENT_CONNECT
1111

12-
echo "create table rt_bloom.probe(c uint64) as select * from numbers(100000)" | $BENDSQL_CLIENT_CONNECT
12+
echo "create table rt_bloom.probe(c uint64)" | $BENDSQL_CLIENT_CONNECT
1313
echo "create table rt_bloom.build(c uint64)" | $BENDSQL_CLIENT_CONNECT
1414

15-
echo "The probe table should consist of 2 blocks"
16-
echo "select block_count from fuse_snapshot('rt_bloom','probe')" | $BENDSQL_CLIENT_CONNECT
15+
echo "insert into rt_bloom.probe values (1),(2),(3)" | $BENDSQL_CLIENT_CONNECT
16+
echo "insert into rt_bloom.probe values (4),(5),(6)" | $BENDSQL_CLIENT_CONNECT
1717

18+
echo "The probe table should consist of 2 blocks"
19+
echo "select block_count from fuse_snapshot('rt_bloom','probe') limit 1" | $BENDSQL_CLIENT_CONNECT
1820

19-
echo "insert into rt_bloom.build values(50)" | $BENDSQL_CLIENT_CONNECT
2021

22+
echo "insert into rt_bloom.build values(5)" | $BENDSQL_CLIENT_CONNECT
2123

2224
echo "runtime range filter should work, one of the blocks should be pruned by range filter"
25+
# leading spaces are trimmed, as distributed plan has different indentation
2326
echo "explain analyze select * from rt_bloom.probe inner join rt_bloom.build on probe.c = build.c " \
24-
| $BENDSQL_CLIENT_CONNECT | grep "parts pruned by"
25-
27+
| $BENDSQL_CLIENT_CONNECT | grep "parts pruned by" | awk '{$1=$1}1'
2628

2729

28-
echo "delete from rt_bloom.probe where c = 50" | $BENDSQL_CLIENT_CONNECT;
30+
echo "delete from rt_bloom.probe where c = 5" | $BENDSQL_CLIENT_CONNECT;
2931
echo "runtime bloom filter should work, another block should be pruned by bloom filter"
32+
# leading spaces are trimmed, as distributed plan has different indentation
3033
echo "explain analyze select * from rt_bloom.probe inner join rt_bloom.build on probe.c = build.c " \
31-
| $BENDSQL_CLIENT_CONNECT | grep "parts pruned by"
34+
| $BENDSQL_CLIENT_CONNECT | grep "parts pruned by" | awk '{$1=$1}1'
3235

3336
echo "DROP TABLE rt_bloom.probe" | $BENDSQL_CLIENT_CONNECT
3437
echo "DROP TABLE rt_bloom.build" | $BENDSQL_CLIENT_CONNECT

0 commit comments

Comments
 (0)