Skip to content

Commit

Permalink
Fixing test cases to set unsafe_guess where expected
Browse files Browse the repository at this point in the history
Signed-off-by: Teague Sterling <[email protected]>
  • Loading branch information
teaguesterling committed Nov 23, 2024
1 parent 0296fd9 commit 0d73160
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sql/iceberg_scan.test
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
----
<REGEX>:.*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);
----
Expand Down
3 changes: 3 additions & 0 deletions test/sql/iceberg_snapshots.test
Original file line number Diff line number Diff line change
Expand Up @@ -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');
----
Expand Down

0 comments on commit 0d73160

Please sign in to comment.