should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
# name: test/sql/storage/buffer_manager/appending_table_exceeding_limit.test_slow
# description: Test appending and checkpointing a table that exceeds buffer manager size
# group: [buffer_manager]
# load the DB from disk
load __TEST_DIR__/test_table_exceeding_limit.db
statement ok
SET force_compression='uncompressed'
statement ok
SET memory_limit = '10MB'
statement ok
SET threads=1
statement ok
CREATE TABLE test (a INTEGER, b INTEGER);
statement ok
INSERT INTO test VALUES (1, 10), (2, 20), (3, 30), (NULL, NULL)
loop i 0 23
statement ok
INSERT INTO test SELECT * FROM test
endloop
query IIII
SELECT COUNT(*), COUNT(a), SUM(a), SUM(b) FROM test
----
33554432 25165824 50331648 503316480
loop i 0 2
restart
statement ok
SET force_compression='uncompressed'
statement ok
SET memory_limit = '10MB'
statement ok
SET threads=1
query IIII
SELECT COUNT(*), COUNT(a), SUM(a), SUM(b) FROM test
----
33554432 25165824 50331648 503316480
endloop

View File

@@ -0,0 +1,56 @@
# name: test/sql/storage/buffer_manager/larger_than_memory_aggregate.test_slow
# description: Test scanning a table and computing an aggregate over a table that exceeds buffer manager size
# group: [buffer_manager]
# load the DB from disk
load __TEST_DIR__/larger_than_memory_aggregate.db
statement ok
PRAGMA force_compression='uncompressed'
statement ok
SET memory_limit='10000000b'
statement ok
SET threads=1
statement ok
CREATE TABLE test (a INTEGER, b INTEGER);
statement ok
INSERT INTO test VALUES (11, 22), (13, 22), (12, 21), (NULL, NULL)
# insert until 16777216 rows
loop i 0 22
statement ok
INSERT INTO test SELECT * FROM test
endloop
query I
SELECT COUNT(*) FROM test
----
16777216
query I
SELECT SUM(a) + SUM(b) FROM test
----
423624704
loop i 0 2
restart
statement ok
SET memory_limit='10000000b'
statement ok
SET threads=1
query I
SELECT SUM(a) + SUM(b) FROM test
----
423624704
endloop