lasdf1234 commented on code in PR #15028:
URL: https://github.com/apache/gravitino/pull/15028#discussion_r4600172336
##########
docs/open-api/policies.yaml:
##########
@@ -427,8 +474,20 @@ components:
IcebergOrphanFileRemovalContent:
type: object
- description: Table-level orphan cleanup options. Scheduling is
configured separately.
+ description: >
+ Table-level orphan cleanup options with TMS execution peers such as
`timeTrigger`.
+ `commitTrigger=true` is rejected for this policy type. On
updateContent, newContent
+ fully replaces the previous content; omitting a peer clears it.
+ additionalProperties: false
properties:
+ <<: *policy-execution-peer-properties
+ # Explicit key wins over the YAML merge: orphan cleanup never accepts
commitTrigger=true.
+ commitTrigger:
+ type: boolean
+ nullable: true
+ enum: [false]
Review Comment:
Good catch — addressed in the follow-up commit.
Updated to `nullable: true` + `enum: [false, null]` (same idea as
`domains.yaml` parent putting `null` in the enum), so explicit `null` is
accepted as unset while `true` stays rejected.
--
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]