From 0d731603d262b9072e714eff3a95cf00456ca545 Mon Sep 17 00:00:00 2001 From: Teague Sterling Date: Sat, 23 Nov 2024 15:58:52 -0800 Subject: [PATCH] Fixing test cases to set unsafe_guess where expected Signed-off-by: Teague Sterling --- test/sql/iceberg_scan.test | 9 +++++++++ test/sql/iceberg_snapshots.test | 3 +++ 2 files changed, 12 insertions(+) diff --git a/test/sql/iceberg_scan.test b/test/sql/iceberg_scan.test index 41211dd..f27e88c 100644 --- a/test/sql/iceberg_scan.test +++ b/test/sql/iceberg_scan.test @@ -12,6 +12,7 @@ require parquet require iceberg + ### Scanning latest snapshot query I SELECT count(*) FROM ICEBERG_SCAN('data/iceberg/lineitem_iceberg', ALLOW_MOVED_PATHS=TRUE); @@ -80,6 +81,14 @@ SELECT count(*) FROM ICEBERG_SCAN('data/iceberg/lineitem_iceberg_gz', ALLOW_MOVE ---- 111968 +statement error +SELECT count(*) FROM ICEBERG_SCAN('data/iceberg/lineitem_iceberg_no_hint', ALLOW_MOVED_PATHS=TRUE); +---- +:.*SET unsafe_enable_version_guessing.* + +statement ok +SET unsafe_enable_version_guessing=true; + query I SELECT count(*) FROM ICEBERG_SCAN('data/iceberg/lineitem_iceberg_no_hint', '2023-02-15 15:07:54.504'::TIMESTAMP, ALLOW_MOVED_PATHS=TRUE); ---- diff --git a/test/sql/iceberg_snapshots.test b/test/sql/iceberg_snapshots.test index bd6e62a..40125b9 100644 --- a/test/sql/iceberg_snapshots.test +++ b/test/sql/iceberg_snapshots.test @@ -58,6 +58,9 @@ SELECT * FROM ICEBERG_SNAPSHOTS('data/iceberg/lineitem_iceberg_gz', metadata_com ---- 0 4468019210336628573 2024-03-13 18:38:58.602 lineitem_iceberg_gz/metadata/snap-4468019210336628573-1-23f9dbea-1e7f-4694-a82c-dc3c9a94953e.avro +statement ok +SET unsafe_enable_version_guessing=true; + query IIII SELECT * FROM ICEBERG_SNAPSHOTS('data/iceberg/lineitem_iceberg_no_hint'); ----