JanKaul opened a new issue, #6315: URL: https://github.com/apache/iceberg/issues/6315
### Feature Request / Improvement ## Background Table or view references in a SQL statement are typically resolved by looking up the reference in a catalog. Before that the query engine doesn't know whether the reference is a table or a view. ## Expected behavior When looking up a table/view reference with the REST catalog, the response should return table metadata it the reference is a table and view metadata if the reference is a view. ## Current behavior Currently the Catalog REST API is designed to only return iceberg tables. References that target views are not supported. I think the API should be designed in a way that enables adding support for views. The support doesn't have to be incorporated now, but the API should be designed in a way that the support could be added later on without breaking backwards compatibility of the API. One way of doing this could be to return a `oneOf` of a `table` type, which could be extended in the future to also return a `view` type. ### Query engine _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
