Schema is not creating with s3 uri when using polaris rest catalog #24943
Unanswered
udaykaithi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using Trino 455 and trying to create a schema and & tables with polaris rest catalog from Trino.
Issue:
Schema created from Trino, doesn't have s3 URI location causing table creation to fail. Looks like, Trino is specifying the namespace location at creation time. Otherwise, Polaris will always add the catalog base location to the namespace. Can we check if Trino is specifying location implicitly and fix it.
Describe schema
In the above output, location doesn't have s3 uri like
s3://bucket-name/
. This is causing the table creation to fail with below error. Ideally, it should create withs3://bucket/plrs-warehouse/demo/tpch1
Table creation Query:
trino> CREATE OR REPLACE TABLE polaris.tpch1.table_4 (id bigint);
Error:
org.apache.iceberg.exceptions.RESTException: Unable to process: Failed to get subscoped credentials: Invalid S3 URI: no hostname: demo/tpch1/table_4-6faf13a274c74e44820762ee62e9be0d
Even creating schema with correct location is also failing with below error
Additional details:
Catalog Info:
connector info:
complete stacktrace:
Table creation error: (when schema is created without location)
schema when creating with location error:
Beta Was this translation helpful? Give feedback.
All reactions