Skip to content

Commit 1c8de5c

Browse files
committed
Replace expected exception type in tests
1 parent 6bfb30f commit 1c8de5c

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

test/sql/cloud/glue/test_glue.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ attach '84014028:s3tablescatalog/pyiceberg-blog-bucket' as bad_account_id (
6565
ENDPOINT_TYPE 'GLUE'
6666
);
6767
----
68-
IO Error
68+
Invalid Configuration Error
6969

7070
statement error
7171
attach '840140254803:incorrect/pyiceberg-blog-bucket' as no_s3tables (
7272
TYPE ICEBERG,
7373
ENDPOINT_TYPE 'GLUE'
7474
);
7575
----
76-
IO Error
76+
Invalid Configuration Error
7777

7878

test/sql/cloud/test_bad_connections.test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ attach 'arn:aws:s3tables:us-east-2:840140254803:bucket/iceberg-testing' as s3tab
1919
SECRET 's3table_secret'
2020
);
2121
----
22-
IO Error
22+
Invalid Input Error
2323

2424
statement error
2525
attach '840140254803:s3tablescatalog/pyiceberg-blog-bucket' as glue_catalog (
@@ -28,7 +28,7 @@ attach '840140254803:s3tablescatalog/pyiceberg-blog-bucket' as glue_catalog (
2828
SECRET 'glue_secret'
2929
);
3030
----
31-
IO Error
31+
Invalid Input Error
3232

3333

3434
statement error
@@ -37,7 +37,7 @@ attach 'arn:aws:s3tables:us-east-2:840140254803:bucket/iceberg-testing' as s3tab
3737
ENDPOINT_TYPE 'S3_TABLES_XX'
3838
);
3939
----
40-
IO Error
40+
Invalid Configuration Error
4141

4242

4343
statement error
@@ -46,7 +46,7 @@ attach '840140254803:s3tablescatalog/pyiceberg-blog-bucket' as glue_catalog (
4646
ENDPOINT_TYPE 'GLUE_XXX'
4747
);
4848
----
49-
IO Error
49+
Invalid Configuration Error
5050

5151
statement ok
5252
CREATE SECRET (
@@ -60,6 +60,6 @@ attach 'quickstart_catalog' as my_datalake (
6060
ENDPOINT 'http://does_not_exist.com/api/catalog'
6161
)
6262
----
63-
IO Error
63+
HTTP Error
6464

6565

test/sql/local/iceberg_scans/iceberg_metadata.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ lineitem_iceberg/metadata/10eaca8a-1e1c-421e-ad6d-b232e5ee23d3-m0.avro 2 DATA DE
4040
statement error
4141
SELECT * FROM ICEBERG_METADATA('data/persistent/iceberg/lineitem_iceberg_gz', ALLOW_MOVED_PATHS=TRUE);
4242
----
43-
IO Error: Iceberg metadata file not found for table version '2' using 'none' compression and format(s): 'v%s%s.metadata.json,%s%s.metadata.json'
43+
Invalid Configuration Error: Iceberg metadata file not found for table version '2' using 'none' compression and format(s): 'v%s%s.metadata.json,%s%s.metadata.json'
4444

4545
statement error
4646
SELECT * FROM ICEBERG_METADATA('data/persistent/iceberg/lineitem_iceberg_gz', ALLOW_MOVED_PATHS=TRUE, METADATA_COMPRESSION_CODEC="blarg", version_name_format='blat%s%s');
4747
----
48-
IO Error: Iceberg metadata file not found for table version '2' using 'blarg' compression and format(s): 'blat%s%s'
48+
Invalid Configuration Error: Iceberg metadata file not found for table version '2' using 'blarg' compression and format(s): 'blat%s%s'
4949

5050
query IIIIIIII
5151
SELECT * FROM ICEBERG_METADATA('data/persistent/iceberg/lineitem_iceberg_gz', ALLOW_MOVED_PATHS=TRUE, METADATA_COMPRESSION_CODEC="gzip");
@@ -55,7 +55,7 @@ lineitem_iceberg_gz/metadata/23f9dbea-1e7f-4694-a82c-dc3c9a94953e-m0.avro 0 DATA
5555
statement error
5656
SELECT * FROM ICEBERG_METADATA('data/persistent/iceberg/lineitem_iceberg_nonexistent');
5757
----
58-
IO Error: Failed to read iceberg table. No version was provided and no version-hint could be found,
58+
Invalid Configuration Error: Failed to read iceberg table. No version was provided and no version-hint could be found,
5959

6060
statement error
6161
SELECT * FROM ICEBERG_METADATA('data/persistent/iceberg/lineitem_iceberg_no_hint', ALLOW_MOVED_PATHS=TRUE);

test/sql/local/iceberg_scans/iceberg_scan.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ SELECT count(*) FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg', sn
6060
statement error
6161
FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg', snapshot_from_timestamp='2023-02-15 15:07:54.503'::TIMESTAMP, ALLOW_MOVED_PATHS=TRUE);
6262
----
63-
IO Error: Could not find latest snapshots for timestamp 2023-02-15 15:07:54.503
63+
Invalid Configuration Error: Could not find latest snapshots for timestamp 2023-02-15 15:07:54.503
6464

6565
statement error
6666
SELECT * FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg_gz', ALLOW_MOVED_PATHS=TRUE);
6767
----
68-
IO Error: Iceberg metadata file not found for table version '2' using 'none' compression and format(s): 'v%s%s.metadata.json,%s%s.metadata.json'
68+
Invalid Configuration Error: Iceberg metadata file not found for table version '2' using 'none' compression and format(s): 'v%s%s.metadata.json,%s%s.metadata.json'
6969

7070
query I
7171
SELECT count(*) FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg_gz', ALLOW_MOVED_PATHS=TRUE, METADATA_COMPRESSION_CODEC="gzip");
@@ -109,7 +109,7 @@ SELECT count(*) FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg_no_h
109109
statement error
110110
FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg_no_hint', snapshot_from_timestamp='2023-02-15 15:07:54.503'::TIMESTAMP, ALLOW_MOVED_PATHS=TRUE);
111111
----
112-
IO Error: Could not find latest snapshots for timestamp 2023-02-15 15:07:54.503
112+
Invalid Configuration Error: Could not find latest snapshots for timestamp 2023-02-15 15:07:54.503
113113

114114
query I
115115
SELECT count(*) FROM ICEBERG_SCAN('data/persistent/iceberg/lineitem_iceberg_gz_no_hint', ALLOW_MOVED_PATHS=TRUE, METADATA_COMPRESSION_CODEC="gzip");

test/sql/local/iceberg_scans/iceberg_snapshots.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg', vers
3030
statement error
3131
SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg', version="1", version_name_format='v%s%s.metadata.gz');
3232
----
33-
IO Error: Iceberg metadata file not found for table version '1' using 'none' compression and format(s): 'v%s%s.metadata.gz'
33+
Invalid Configuration Error: Iceberg metadata file not found for table version '1' using 'none' compression and format(s): 'v%s%s.metadata.gz'
3434

3535
query IIII
3636
SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg', version="1", version_name_format='v%s%s.metadata.json');
@@ -45,12 +45,12 @@ SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg', vers
4545
statement error
4646
SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg_nonexistent');
4747
----
48-
IO Error: Failed to read iceberg table. No version was provided and no version-hint could be found,
48+
Invalid Configuration Error: Failed to read iceberg table. No version was provided and no version-hint could be found,
4949

5050
statement error
5151
SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg_gz');
5252
----
53-
IO Error: Iceberg metadata file not found for table version '2' using 'none' compression and format(s): 'v%s%s.metadata.json,%s%s.metadata.json'
53+
Invalid Configuration Error: Iceberg metadata file not found for table version '2' using 'none' compression and format(s): 'v%s%s.metadata.json,%s%s.metadata.json'
5454

5555
query IIII
5656
SELECT * FROM ICEBERG_SNAPSHOTS('data/persistent/iceberg/lineitem_iceberg_gz', metadata_compression_codec="gzip");

test/sql/local/irc/test_mutliple_keys.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ attach '840140254803:s3tablescatalog/pyiceberg-blog-bucket' as glue_lake (
4040
ENDPOINT_TYPE 'GLUE'
4141
);
4242
----
43-
IO Error
43+
Invalid Configuration Error
4444

4545
statement ok
4646
CREATE or replace SECRET amazing_secret (
@@ -60,7 +60,7 @@ attach '840140254803:s3tablescatalog/pyiceberg-blog-bucket' as glue_lake (
6060
ENDPOINT_TYPE 'GLUE'
6161
);
6262
----
63-
IO Error
63+
Invalid Configuration Error
6464

6565
# TODO: fix me. Only fails in CI
6666
mode skip

0 commit comments

Comments
 (0)