T-213: tests

This commit is contained in:
Studio 2026-12-05 14:30:33 -05:00
parent 0cd1f815c8
commit d95b0ce9d3
2 changed files with 450 additions and 1 deletions

View file

@ -812,7 +812,9 @@ def test_sql_and_polars_batch_materialization_cross_section_and_events(tmp_path:
meta = con.execute(f"SELECT compression FROM parquet_metadata('{out_2025}')").fetchall()
assert meta and all(row[0] == "ZSTD" for row in meta)
schema_rows = con.execute(
f"SELECT column_name, column_type FROM (DESCRIBE SELECT * FROM read_parquet('{out_2025}'))"
# hive_partitioning = false: DuckDB auto-detects `year=2025` in the path and would
# append a virtual `year` column; the contract is about the physical file schema.
f"SELECT column_name, column_type FROM (DESCRIBE SELECT * FROM read_parquet('{out_2025}', hive_partitioning = false))"
).fetchall()
assert schema_rows == [
("listing_id", "INTEGER"),