File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
polaris-core/src/main/java/org/apache/polaris/core/config
service/common/src/main/java/org/apache/polaris/service/catalog/iceberg Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,14 @@ protected BehaviorChangeConfiguration(
6060 .defaultValue (false )
6161 .buildBehaviorChangeConfiguration ();
6262
63- public static final BehaviorChangeConfiguration <Boolean > TABLE_OPERATIONS_MAKE_METADATA_CURRENT_ON_COMMIT =
64- PolarisConfiguration .<Boolean >builder ()
65- .key ("TABLE_OPERATIONS_MAKE_METADATA_CURRENT_ON_COMMIT" )
66- .description (
67- "If true, BasePolarisTableOperations should mark the metadata that is passed into"
68- + " `commit` as current, and re-use it to skip a trip to object storage to re-construct"
69- + " the committed metadata again." )
70- .defaultValue (true )
71- .buildBehaviorChangeConfiguration ();
63+ public static final BehaviorChangeConfiguration <Boolean >
64+ TABLE_OPERATIONS_MAKE_METADATA_CURRENT_ON_COMMIT =
65+ PolarisConfiguration .<Boolean >builder ()
66+ .key ("TABLE_OPERATIONS_MAKE_METADATA_CURRENT_ON_COMMIT" )
67+ .description (
68+ "If true, BasePolarisTableOperations should mark the metadata that is passed into"
69+ + " `commit` as current, and re-use it to skip a trip to object storage to re-construct"
70+ + " the committed metadata again." )
71+ .defaultValue (true )
72+ .buildBehaviorChangeConfiguration ();
7273}
Original file line number Diff line number Diff line change @@ -363,7 +363,8 @@ public ViewBuilder buildView(TableIdentifier identifier) {
363363 @ VisibleForTesting
364364 public TableOperations newTableOps (
365365 TableIdentifier tableIdentifier , boolean makeMetadataCurrentOnCommit ) {
366- return new BasePolarisTableOperations (catalogFileIO , tableIdentifier , makeMetadataCurrentOnCommit );
366+ return new BasePolarisTableOperations (
367+ catalogFileIO , tableIdentifier , makeMetadataCurrentOnCommit );
367368 }
368369
369370 @ Override
@@ -1229,7 +1230,9 @@ public class BasePolarisTableOperations extends PolarisOperationsBase<TableMetad
12291230 private FileIO tableFileIO ;
12301231
12311232 BasePolarisTableOperations (
1232- FileIO defaultFileIO , TableIdentifier tableIdentifier , boolean makeMetadataCurrentOnCommit ) {
1233+ FileIO defaultFileIO ,
1234+ TableIdentifier tableIdentifier ,
1235+ boolean makeMetadataCurrentOnCommit ) {
12331236 LOGGER .debug ("new BasePolarisTableOperations for {}" , tableIdentifier );
12341237 this .tableIdentifier = tableIdentifier ;
12351238 this .fullTableName = fullTableName (catalogName , tableIdentifier );
You can’t perform that action at this time.
0 commit comments