Skip to content

Commit

Permalink
change unzip.test vector's and block's sizes and to require 64bit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisiou committed Apr 15, 2024
1 parent 496977a commit f303d87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions test/sql/storage/unzip.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
# description: Support gzipped files in the test runner
# group: [storage]

# data/storage/index_0-9-1.db was written with a 64-bit version of duckdb
require 64bit

require block_size 262144

require vector_size 2048

statement ok
PRAGMA enable_verification

# unzip to specific path
unzip data/storage/test.db.gz __TEST_DIR__/test.db

Expand Down
5 changes: 2 additions & 3 deletions tools/pythonpkg/scripts/sqllogictest_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,11 @@ def main():
if test_directory:
file_path = os.path.join(test_directory, file_path)

test = SQLLogicTest("")
try:
test = sql_parser.parse(file_path)
if not test:
raise SQLParserException(f'failed to parse {file_path}')
except SQLParserException as e:
if not ("test" in locals()): # test hasn't been initialized because of the raised exception
test = SQLLogicTest("")
test.skip(True)
executor.skip_log.append(str(e.message))

Expand Down

0 comments on commit f303d87

Please sign in to comment.