lasdf1234 commented on code in PR #12194:
URL: https://github.com/apache/gravitino/pull/12194#discussion_r3663377319


##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/IcebergConfig.java:
##########
@@ -341,6 +341,18 @@ public class IcebergConfig extends Config implements 
OverwriteDefaultConfig {
           .checkValue(value -> value > 0, 
ConfigConstants.POSITIVE_NUMBER_ERROR_MSG)
           .createWithDefault(60);
 
+  public static final ConfigEntry<Integer> SCAN_PLAN_TASK_BATCH_SIZE =
+      new ConfigBuilder(IcebergConstants.SCAN_PLAN_TASK_BATCH_SIZE)
+          .doc(
+              "Maximum number of file scan tasks returned inline by one scan 
planning response. "
+                  + "Tasks beyond this limit are handed out as plan-task 
tokens that clients "
+                  + "exchange for the remaining tasks. Set to 0 to disable 
batching and always "
+                  + "return every task inline.")
+          .version(ConfigConstants.VERSION_1_3_0)
+          .intConf()
+          .checkValue(value -> value >= 0, 
ConfigConstants.NON_NEGATIVE_NUMBER_ERROR_MSG)
+          .createWithDefault(1000);
+

Review Comment:
   May be 100 is better.



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