Skip to content

Commit bb6b971

Browse files
committed
Better tests
1 parent 9b6e23c commit bb6b971

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
-- { echo ON }
22

33
DROP TABLE IF EXISTS t;
4-
CREATE TABLE t(k String) ORDER BY k as select 'dst_'||number from numbers(1e6);
4+
CREATE TABLE t(k String) ORDER BY k as select 'dst_'||number from numbers(10);
55
SELECT count(*) FROM t WHERE k LIKE 'dst_kkkk_1111%';
66
0
7+
SELECT count(*) FROM t WHERE k LIKE 'dst%kkkk';
8+
0
79
DROP TABLE t;

tests/queries/0_stateless/03461_pk_prefix_trivial_count.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
DROP TABLE IF EXISTS t;
44

5-
CREATE TABLE t(k String) ORDER BY k as select 'dst_'||number from numbers(1e6);
5+
CREATE TABLE t(k String) ORDER BY k as select 'dst_'||number from numbers(10);
66

77
SELECT count(*) FROM t WHERE k LIKE 'dst_kkkk_1111%';
88

9+
SELECT count(*) FROM t WHERE k LIKE 'dst%kkkk';
10+
911
DROP TABLE t;

0 commit comments

Comments
 (0)