-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trino-iceberg-minio: unable to USE catalog #12
Comments
Hey @GiorgioBaldelli! I'm so glad to hear that this is somewhat helping so far. Hope we can get you across the finish line to that first Trino query bliss. Okay, so one thing I see that trips up a lot of users is that there's a bit of confusion around the catalog/schema. To be clear Trino follows a three-tier containment hierarchy, The USE clause is to be applied to the schema level. In your case, you're trying to run So for your case, try Let me know if that solves your issue and please close this if it does! Also thanks for bringing up this question. I'm putting together some video tutorials now and this is a common issue we get so I will create a video specifically on this! |
Thanks for the clear response @bitsondatadev!
However, I'm noticing a behaviour that I'm not sure is intended:
When running the previous command, I'm seeing a that the table gets created successfully at the location However, I'm also see a table with the same name at the location The redundant table that gets created at It looks like catalog redirects may be required? |
This is odd and something I might expect should work but there are a lot of compatibility issues between Hive and Iceberg connectors. This can be confusing as they both share the same metastore for catalog data (hence when you create a table or a view from one you'll likely see it in the other) but the way the data is stored on disk is entirely different. The general case in production is that people are currently living with hive and need to move to iceberg. So we've tested reading hive created tables extensively from iceberg. The inverse (iceberg to Hive) is much less tested and more likely to break. This is rarely an issue as nobody really wants to move back to Hive only from Hive to Iceberg. |
Adding in
and in
should indeed address the issue you are pointing out. @GiorgioBaldelli if you want you can contribute a PR to address this aspect. |
Looks like the issue was addressed, regarding catalog redirects, please reopen and add a PR if this is a feature anyone is interested. |
Hi Brian @bitsondatadev, thanks for sharing the
trino-iceberg-minio
example in the community call and in this repo. Really appreciate your work!I haven't found a solution for this issue yet:
USE hive
; orUSE iceberg;
to specify the catalog to use when executing a given SQL statement, this error follows:I've attempted to solve this by using the
--catalog
flag when initializing the connection:./trino-cli-388-executable.jar --server http://localhost:8080 --catalog hive
Unfortunately, this is not helpful. When I attempt to create a
dummy_table
table inhive.iris
the table gets also created in iceberg.iris. The result:hive.iris.dummy_table
&iceberg.iris.dummy_table
.Have you bumped into a similar issue before and know a workaround perhaps?
Thanks in advance,
Giorgio
The text was updated successfully, but these errors were encountered: