brodiealexander commented on issue #2068:
URL: https://github.com/apache/iceberg-rust/issues/2068#issuecomment-3824840537
@kevinjqliu Actually, it is used in the Java implementation for the V1
methods
```
private static final String V1_DO_COMMIT_TABLE_SQL =
"UPDATE "
+ CATALOG_TABLE_VIEW_NAME
+ " SET "
+ JdbcTableOperations.METADATA_LOCATION_PROP
+ " = ? , "
+ JdbcTableOperations.PREVIOUS_METADATA_LOCATION_PROP
+ " = ?"
+ " WHERE "
+ CATALOG_NAME
+ " = ? AND "
+ TABLE_NAMESPACE
+ " = ? AND "
+ TABLE_NAME
+ " = ? AND "
+ JdbcTableOperations.METADATA_LOCATION_PROP
+ " = ? AND ("
+ RECORD_TYPE
+ " = '"
+ TABLE_RECORD_TYPE
+ "'"
+ " OR "
+ RECORD_TYPE
+ " IS NULL)";
private static final String V1_DO_COMMIT_VIEW_SQL =
"UPDATE "
+ CATALOG_TABLE_VIEW_NAME
+ " SET "
+ JdbcTableOperations.METADATA_LOCATION_PROP
+ " = ? , "
+ JdbcTableOperations.PREVIOUS_METADATA_LOCATION_PROP
+ " = ?"
+ " WHERE "
+ CATALOG_NAME
+ " = ? AND "
+ TABLE_NAMESPACE
+ " = ? AND "
+ TABLE_NAME
+ " = ? AND "
+ JdbcTableOperations.METADATA_LOCATION_PROP
+ " = ? AND "
+ RECORD_TYPE
+ " = "
+ "'"
+ VIEW_RECORD_TYPE
+ "'";
private static final String V0_DO_COMMIT_SQL =
"UPDATE "
+ CATALOG_TABLE_VIEW_NAME
+ " SET "
+ JdbcTableOperations.METADATA_LOCATION_PROP
+ " = ? , "
+ JdbcTableOperations.PREVIOUS_METADATA_LOCATION_PROP
+ " = ?"
+ " WHERE "
+ CATALOG_NAME
+ " = ? AND "
+ TABLE_NAMESPACE
+ " = ? AND "
+ TABLE_NAME
+ " = ? AND "
+ JdbcTableOperations.METADATA_LOCATION_PROP
+ " = ?";
```
--
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]