-
Notifications
You must be signed in to change notification settings - Fork 343
Description
We haven't talked about Iceberg Views yet and I'm not sure if you would like to support them in the future. I'm actually really interested in using views.
I don't want to include view support in this PR but I would like to future proof the catalog design to easily support views in the future.
The REST catalog is in the process of adding view support. However, I have the feeling that the initial REST catalog API wasn't designed with views in mind. There is one issue that comes up with the current design that we might be able to avoid for our catalog design. I will try to explain the issue.
Imagine a query engine wants to perform a query like the following:
SELECT first_name, last_name, age FROM users WHERE age > 18;Without the catalog information the query engine doesn't know whether
usersrefers to a view or a table. So if the catalog only exposes aload_tableandload_viewoperation, the query engine doesn't know which one to call. I would prefer aload_tablelike(the naming is not important) operation that returns anenum TableLike { Table(Table), View(View) }All iceberg catalogs except for the REST catalog return a "table metadata location" and it would be easy to distinguish between Tables and Views based on the metadata.
Let me know what you think.
Originally posted by @JanKaul in #54 (comment)