@@ -949,8 +949,8 @@ private String applyDefaultLocationObjectStoragePrefix(
949
949
throw new IllegalStateException (
950
950
String .format (
951
951
"The configuration %s is enabled, but %s is not enabled" ,
952
- FeatureConfiguration .DEFAULT_LOCATION_OBJECT_STORAGE_PREFIX_ENABLED .key ,
953
- FeatureConfiguration .ALLOW_UNSTRUCTURED_TABLE_LOCATION .key ));
952
+ FeatureConfiguration .DEFAULT_LOCATION_OBJECT_STORAGE_PREFIX_ENABLED .key () ,
953
+ FeatureConfiguration .ALLOW_UNSTRUCTURED_TABLE_LOCATION .key () ));
954
954
} else if (!allowTableLocationOverlap ) {
955
955
// TODO consider doing this check any time ALLOW_EXTERNAL_TABLE_LOCATION is enabled, not just
956
956
// here
@@ -961,17 +961,17 @@ private String applyDefaultLocationObjectStoragePrefix(
961
961
+ " performed, but only within each namespace. However, %s is enabled, which indicates"
962
962
+ " that tables may be created outside of their parent namespace. This is not a safe"
963
963
+ " combination of configurations." ,
964
- FeatureConfiguration .ALLOW_TABLE_LOCATION_OVERLAP .key ,
965
- FeatureConfiguration .OPTIMIZED_SIBLING_CHECK .key ,
966
- FeatureConfiguration .ALLOW_UNSTRUCTURED_TABLE_LOCATION .key ));
964
+ FeatureConfiguration .ALLOW_TABLE_LOCATION_OVERLAP .key () ,
965
+ FeatureConfiguration .OPTIMIZED_SIBLING_CHECK .key () ,
966
+ FeatureConfiguration .ALLOW_UNSTRUCTURED_TABLE_LOCATION .key () ));
967
967
} else if (!loggedPrefixOverlapWarning .getAndSet (true )) {
968
968
LOGGER .warn (
969
969
"A table is being created with {} and {} enabled, but with {} disabled. "
970
970
+ "This is a safe combination of configurations which may prevent table overlap, but only if the "
971
971
+ "underlying persistence actually implements %s. Exercise caution." ,
972
- FeatureConfiguration .DEFAULT_LOCATION_OBJECT_STORAGE_PREFIX_ENABLED .key ,
973
- FeatureConfiguration .OPTIMIZED_SIBLING_CHECK .key ,
974
- FeatureConfiguration .ALLOW_TABLE_LOCATION_OVERLAP .key );
972
+ FeatureConfiguration .DEFAULT_LOCATION_OBJECT_STORAGE_PREFIX_ENABLED .key () ,
973
+ FeatureConfiguration .OPTIMIZED_SIBLING_CHECK .key () ,
974
+ FeatureConfiguration .ALLOW_TABLE_LOCATION_OVERLAP .key () );
975
975
}
976
976
return buildPrefixedLocation (tableIdentifier );
977
977
} else {
0 commit comments