flyrain commented on code in PR #4606:
URL: https://github.com/apache/polaris/pull/4606#discussion_r3368808895


##########
polaris-core/src/main/java/org/apache/polaris/core/config/FeatureConfiguration.java:
##########
@@ -287,6 +287,20 @@ public static void enforceFeatureEnabledOrThrow(
           .defaultValue(false)
           .buildFeatureConfiguration();
 
+  public static final FeatureConfiguration<Boolean> 
ALLOW_CLIENT_SPECIFIED_TABLE_LOCATION =
+      PolarisConfiguration.<Boolean>builder()
+          .key("ALLOW_CLIENT_SPECIFIED_TABLE_LOCATION")
+          
.catalogConfig("polaris.config.allow.client-specified.table.location")
+          .description(
+              "If set to true, Polaris honors a `location` (and the 
`write.data.path` / "
+                  + "`write.metadata.path` properties) explicitly supplied in 
a create-table or "
+                  + "create-view request (subject to the usual 
allowed-location and overlap "
+                  + "validation). If set to false (the default), such a 
request is rejected and "
+                  + "Polaris always generates the managed location. "
+                  + "See DEFAULT_TABLE_LOCATION_USE_UUID.")
+          .defaultValue(false)

Review Comment:
   Changed it as suggested.



-- 
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]

Reply via email to