Prevent creating the table when the specified schema does not exist#15788
Conversation
|
@krvikash Could you confirm CI failures? |
|
@krvikash would there a similar approach as in Delta Lake help in this case ? |
1a1bc4c to
0f2e0e2
Compare
core/trino-main/src/main/java/io/trino/execution/CreateTableTask.java
Outdated
Show resolved
Hide resolved
0f2e0e2 to
e9ada98
Compare
|
Failing tests on Pls push an empty commit when the above mentioned PR lands. |
73d09d2 to
c3fb2eb
Compare
|
Addressed comments. |
There was a problem hiding this comment.
We would like to keep the smoke test as simple as possible. Can we move to BaseIcebergConnectorTest instead? Or do you have a specific reason to run this test in the smoke test class?
There was a problem hiding this comment.
Yes, there is a specific reason to have this test in BaseIcebergConnectorSmokeTest. I wanted to test against cloud storage different metastore. BaseIcebergConnectorTest only covers the Local file system.
There was a problem hiding this comment.
without this fix:
Using Hive metastore -> files are created and Exception is thrown Schema (.*) not found
Using Glue metastore -> files are created and Exception is thrown <“Database non_existing_schema_mjmeupcfxy not found. (Service: AWSGlue; Status Code: 400; Error Code: EntityNotFoundException; Request ID: 2225b446-d53f-48f5-9fe9-de4fd3e74e54; Proxy: null)“>
with this fix: Schema (.*) not found exception is thrown for all metastore.
BaseIcebergConnector does not verify for glue. So IMO BaseIcebergConnectorSmokeTest is best suited.
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
c3fb2eb to
0f8b97e
Compare
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java
Outdated
Show resolved
Hide resolved
...test/java/io/trino/plugin/iceberg/catalog/glue/TestIcebergGlueCatalogConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
...test/java/io/trino/plugin/iceberg/catalog/jdbc/TestIcebergJdbcCatalogConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
0f8b97e to
9b98279
Compare
|
Addressed comments. |
|
Build is red see |
9b98279 to
84a9eb2
Compare
I think it's unrelated to my change. Retriggerd the CI build. |
d6be2a6 to
fe53676
Compare
Addressed. It was a shaded class import that was causing issues. |
|
CI is failing with the Flaky test
|
|
/test-with-secrets sha=fe53676f991b788e14fdfd0cbb2eda81236aa6a7 |
c2f6ab6 to
1e97a1e
Compare
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
...test/java/io/trino/plugin/iceberg/catalog/jdbc/TestIcebergJdbcCatalogConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
8d483af to
1f50b86
Compare
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4141358815 |
1f50b86 to
6b2619c
Compare
|
/test-with-secrets sha=6b2619c9795863e24e55c61f312c8514e47c4004 |
6b2619c to
e63cd92
Compare
|
Fixed CI failure. |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4145615692 |
|
/test-with-secrets sha=e63cd92d7c334d6140d233d832a90dddeac7d10e |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4148929977 |
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
e63cd92 to
8fa7ac9
Compare
|
/test-with-secrets sha=8fa7ac9eea1281f24fbc7eb546a65ebfaabbabc2 |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4153825112 |
8fa7ac9 to
93d31bd
Compare
Fixed it |
|
/test-with-secrets sha=93d31bd217f6e503d7b037680942206bd120c2f7 |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4158597848 |
|
CI Failure: This is a new error (https://github.com/trinodb/trino/actions/runs/4158597848/jobs/7194014765). I don't think this error is related to this PR. |
Description
Fixes #15779
Release notes
(X) Release notes are required, with the following suggested text: