You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#10851] improvement(iceberg): Change default Iceberg JDBC schema version to v1 (#10852)
### What changes were proposed in this pull request?
Change default Iceberg JDBC schema version to v1
### Why are the changes needed?
Fix: #10851
### Does this PR introduce _any_ user-facing change?
Modified the document
### How was this patch tested?
Added the UT.
Copy file name to clipboardExpand all lines: clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/TopicAuthorizationIT.java
|`gravitino.iceberg-rest.catalog-backend`| The Catalog backend of the Gravitino Iceberg REST catalog service. Use the value **`jdbc`** for the JDBC catalog backend. |`memory`| Yes | 0.2.0 |
113
-
|`gravitino.iceberg-rest.uri`| The JDBC connection address, such as `jdbc:postgresql://127.0.0.1:5432` for Postgres, or `jdbc:mysql://127.0.0.1:3306/` for mysql. | (none) | Yes | 0.2.0 |
114
-
|`gravitino.iceberg-rest.warehouse`| The warehouse directory of JDBC catalog. Set the HDFS prefix if using HDFS, such as `hdfs://127.0.0.1:9000/user/hive/warehouse-jdbc`| (none) | Yes | 0.2.0 |
115
-
|`gravitino.iceberg-rest.catalog-backend-name`| The catalog name passed to underlying Iceberg catalog backend. Catalog name in JDBC backend is used to isolate namespace and tables. |`jdbc` for JDBC backend | No | 0.5.2 |
116
-
|`gravitino.iceberg-rest.jdbc-user`| The username of the JDBC connection. | (none) | No | 0.2.0 |
117
-
|`gravitino.iceberg-rest.jdbc-password`| The password of the JDBC connection. | (none) | No | 0.2.0 |
118
-
|`gravitino.iceberg-rest.jdbc-initialize`| Whether to initialize the meta tables when creating the JDBC catalog. |`true`| No | 0.2.0 |
119
-
|`gravitino.iceberg-rest.jdbc-driver`|`com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver` for MySQL, `org.postgresql.Driver` for PostgreSQL. | (none) | Yes | 0.3.0 |
120
-
|`gravitino.iceberg-rest.jdbc-schema-version`| The schema version of the JDBC catalog. Set to `V1` to enable view support. Once the underlying database is migrated to V1, this property is no longer required on subsequent restarts. |`V0`| No | 1.2.0 |
110
+
| Configuration item | Description | Default value | Required | Since Version |
|`gravitino.iceberg-rest.catalog-backend`| The Catalog backend of the Gravitino Iceberg REST catalog service. Use the value **`jdbc`** for the JDBC catalog backend. |`memory`| Yes | 0.2.0 |
113
+
|`gravitino.iceberg-rest.uri`| The JDBC connection address, such as `jdbc:postgresql://127.0.0.1:5432` for Postgres, or `jdbc:mysql://127.0.0.1:3306/` for mysql. | (none) | Yes | 0.2.0 |
114
+
|`gravitino.iceberg-rest.warehouse`| The warehouse directory of JDBC catalog. Set the HDFS prefix if using HDFS, such as `hdfs://127.0.0.1:9000/user/hive/warehouse-jdbc`| (none) | Yes | 0.2.0 |
115
+
|`gravitino.iceberg-rest.catalog-backend-name`| The catalog name passed to underlying Iceberg catalog backend. Catalog name in JDBC backend is used to isolate namespace and tables. |`jdbc` for JDBC backend | No | 0.5.2 |
116
+
|`gravitino.iceberg-rest.jdbc-user`| The username of the JDBC connection. | (none) | No | 0.2.0 |
117
+
|`gravitino.iceberg-rest.jdbc-password`| The password of the JDBC connection. | (none) | No | 0.2.0 |
118
+
|`gravitino.iceberg-rest.jdbc-initialize`| Whether to initialize the meta tables when creating the JDBC catalog. |`true`| No | 0.2.0 |
119
+
|`gravitino.iceberg-rest.jdbc-driver`|`com.mysql.jdbc.Driver` or `com.mysql.cj.jdbc.Driver` for MySQL, `org.postgresql.Driver` for PostgreSQL. | (none) | Yes | 0.3.0 |
120
+
|`gravitino.iceberg-rest.jdbc-schema-version`| The schema version of the JDBC catalog. Defaults to `V1` to enable view support. Set to `V0` only if you need to opt out of view support. Once the underlying database is migrated to V1, this property is no longer required on subsequent restarts. |`V1`| No | 1.2.0 |
121
121
122
122
If you have a JDBC Iceberg catalog prior, you must set `catalog-backend-name` to keep consistent with your Jdbc Iceberg catalog name to operate the prior namespace and tables.
123
123
@@ -471,11 +471,11 @@ Please set the `gravitino.iceberg-rest.warehouse` parameter to `{storage_prefix}
471
471
472
472
### View support
473
473
474
-
View operations are supported when using the JDBC catalog backend with schema version `V1`. Iceberg will automatically migrate the database schema on the first restart and detect the migration on all subsequent restarts.
474
+
View operations are supported when using the JDBC catalog backend with schema version `V1`. The default schema version is now `V1`, so view support is enabled out of the box. Iceberg will automatically migrate the database schema on the first restart and detect the migration on all subsequent restarts.
475
475
476
-
| Configuration item | Description | Default value | Required | Since Version |
|`gravitino.iceberg-rest.jdbc-schema-version`| The schema version of the JDBC catalog backend. Set to `V1` to enable view operations. |`V0`| No | 1.2.0 |
476
+
| Configuration item | Description | Default value | Required | Since Version |
|`gravitino.iceberg-rest.jdbc-schema-version`| The schema version of the JDBC catalog backend. Defaults to `V1` to enable view operations. Set to `V0` to opt out. |`V1`| No | 1.2.0 |
Copy file name to clipboardExpand all lines: iceberg/iceberg-common/src/test/java/org/apache/gravitino/iceberg/common/ops/TestIcebergCatalogWrapper.java
Copy file name to clipboardExpand all lines: iceberg/iceberg-common/src/test/java/org/apache/gravitino/iceberg/common/utils/TestIcebergCatalogUtil.java
0 commit comments