Skip to content

Commit 15a0eac

Browse files
committed
autolint
1 parent a2ed637 commit 15a0eac

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

polaris-core/src/main/java/org/apache/polaris/core/config/BehaviorChangeConfiguration.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

service/common/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)