jerryshao commented on code in PR #6396: URL: https://github.com/apache/gravitino/pull/6396#discussion_r1945862159
########## iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java: ########## @@ -215,6 +216,11 @@ public LoadViewResponse updateView(TableIdentifier viewIdentifier, UpdateTableRe } public LoadViewResponse loadView(TableIdentifier viewIdentifier) { + // Trino Analyzer try to get view from Iceberg catalog, return NoSuchViewException to keep + // the compatibility with Trino. + if (!(catalog instanceof ViewCatalog)) { + throw new NoSuchViewException("Catalog %s doesn't support view", catalog.name()); Review Comment: Why can't we fail the query if it is not supported? For example, if we write a query with some unsupported features, shall we fail the query, or doing some implicit conversion? -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org