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


##########
docs/open-api/policies.yaml:
##########
@@ -303,6 +303,44 @@ paths:
 
 
 components:
+  # YAML-only merge source for TMS execution peers. Not a public schema: each 
maintenance
+  # content object inlines these properties so additionalProperties: false 
still accepts them.
+  x-gravitino-policy-execution-peer-properties: 
&policy-execution-peer-properties
+    timeTrigger:
+      type: string
+      nullable: true
+      description: >
+        Optional six-field Quartz cron (`second minute hour day-of-month month 
day-of-week`).
+        When due, PolicyExpand schedules cron maintenance for matching tables.
+    commitTrigger:
+      type: boolean
+      nullable: true
+      description: >
+        When true, a successful Iceberg REST table update can enqueue 
commit-triggered
+        maintenance. Orphan file removal rejects `commitTrigger=true`.

Review Comment:
   Addressed in 8895dfd201:
   
   - Dropped the orphan-specific sentence from the shared `commitTrigger` 
description so it no longer bleeds into the other content schemas.
   - Overrode `commitTrigger` under `IcebergOrphanFileRemovalContent` with 
`enum: [false]` (+ `nullable: true`) so an explicit key wins over the YAML 
merge and matches the server check (`!Boolean.TRUE.equals(...)`).



##########
docs/open-api/policies.yaml:
##########
@@ -303,6 +303,44 @@ paths:
 
 
 components:
+  # YAML-only merge source for TMS execution peers. Not a public schema: each 
maintenance
+  # content object inlines these properties so additionalProperties: false 
still accepts them.
+  x-gravitino-policy-execution-peer-properties: 
&policy-execution-peer-properties
+    timeTrigger:
+      type: string
+      nullable: true
+      description: >
+        Optional six-field Quartz cron (`second minute hour day-of-month month 
day-of-week`).
+        When due, PolicyExpand schedules cron maintenance for matching tables.
+    commitTrigger:
+      type: boolean
+      nullable: true
+      description: >
+        When true, a successful Iceberg REST table update can enqueue 
commit-triggered
+        maintenance. Orphan file removal rejects `commitTrigger=true`.
+    minIntervalMs:
+      type: integer
+      format: int64
+      minimum: 0
+      nullable: true
+      description: >
+        Optional cooldown in milliseconds after a finished run of this policy 
on a table.
+        When omitted, the server uses the per-type default.
+    jobOptions:
+      type: object
+      additionalProperties:
+        type: string
+        minLength: 1
+      description: Optional Spark/job option bag. Keys and values must be 
non-blank.
+    updaterOptions:
+      type: object
+      additionalProperties:
+        type: string
+        minLength: 1
+      description: >
+        Optional updater option bag (for example `gravitino_uri`). Keys and 
values must be
+        non-blank.

Review Comment:
   Addressed in 8895dfd201:
   
   1. Added the same-file non-blank value pattern (`minLength: 1` + `pattern: 
'[\s\S]*\S[\s\S]*'`) on `jobOptions` / `updaterOptions` values to align with 
`StringUtils.isNotBlank`. Map-key non-blank stays in prose (OAS 3.0 limitation).
   2. Marked both maps `nullable: true` so `"jobOptions": null` / 
`"updaterOptions": null` match the server treating null as unset.



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