gravitino
gravitino copied to clipboard
[Bug report] The Iceberg REST server config interface shouldn't return view endpoints for JDBC catalog with v0 schema version
Version
main branch
Describe what's wrong
JDBC catalog starts to support the view operation from the v1 schema version, so config interface shouldn't return view endpoints for JDBC catalog with v0 schema version
Related code
Iceberg config interface check whether the catalog backend supports view operation in https://github.com/apache/gravitino/blob/aab665d9ce6ae6c1ebf2dc47a28e89d2db292672/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergConfigOperations.java#L134
For JDBC catalog we should check whether the schema version is great than 0.
Error message and/or stacktrace
no
How to reproduce
no
Additional context
No response
@sunxiaojian could you plz cherry-pick the PR to branch-1.0? thx