Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 19, 2023
1 parent fc7ec35 commit 4153c8d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions datafusion/sqllogictest/test_files/parquet_bloom.slt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ statement ok
set datafusion.execution.parquet.bloom_filter_enabled = true;

# create a single parquet file
# Note filename 2.parquet to test sorting (on local file systems it is often listed before 1.parquet)
statement ok
# Write row groups with 5 rows each
statement error DataFusion error: SQL error: ParserError\("Expected \), found: ,"\)
COPY (
SELECT
column1 as x,
Expand All @@ -35,11 +35,17 @@ COPY (
(2, 1),
(3, 2),
(4, 2),
(5, 3)
(5, 3),
-- row group boundary
(6, 3),
(7, 4),
(8, 4),
(9, 5),
(10, 5)
)
)
TO 'test_files/scratch/parquet_bloom/t.parquet'
(FORMAT PARQUET, SINGLE_FILE_OUTPUT true);
(FORMAT PARQUET, SINGLE_FILE_OUTPUT true, BLOOM_FILTER_ENABLED true, MAX_ROW_GROUP_SIZE 5);

statement ok
CREATE EXTERNAL TABLE t (
Expand All @@ -57,3 +63,8 @@ select * from t;
3 2
4 2
5 3
6 3
7 4
8 4
9 5
10 5

0 comments on commit 4153c8d

Please sign in to comment.