nastra commented on code in PR #5407:
URL: https://github.com/apache/iceberg/pull/5407#discussion_r968932529
##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -1016,6 +1040,110 @@ components:
items:
type: integer
+ Expression:
+ oneOf:
+ - $ref: '#/components/schemas/AndOrExpression'
+ - $ref: '#/components/schemas/NotExpression'
+ - $ref: '#/components/schemas/SetExpression'
+ - $ref: '#/components/schemas/LiteralExpression'
+
+ ExpressionType:
+ type: string
+ example:
+ - "eq"
+ - "and"
+ - "or"
+ - "not"
+ - "in"
+ - "not-in"
+ - "lt"
+ - "lt-eq"
+ - "gt"
+ - "gt-eq"
+
+ AndOrExpression:
+ type: object
+ required:
+ - type
+ - left
+ - right
+ properties:
+ type:
+ $ref: '#/components/schemas/ExpressionType'
+ enum: ["and", "or"]
+ left:
+ $ref: '#/components/schemas/Expression'
+ right:
+ $ref: '#/components/schemas/Expression'
+
+ NotExpression:
+ type: object
+ required:
+ - type
+ - child
+ properties:
+ type:
+ $ref: '#/components/schemas/ExpressionType'
+ enum: ["not"]
+ child:
+ $ref: '#/components/schemas/Expression'
+
+ LiteralExpression:
+ type: object
+ required:
+ - type
+ - term
+ - value
+ properties:
+ type:
+ $ref: '#/components/schemas/ExpressionType'
+ term:
+ $ref: '#/components/schemas/Term'
+ value:
+ type: object
+
+ SetExpression:
+ type: object
+ required:
+ - type
+ - term
+ - values
+ properties:
+ type:
+ $ref: '#/components/schemas/ExpressionType'
+ enum: ["in", "not-in"]
+ term:
+ $ref: '#/components/schemas/Term'
+ values:
+ type: array
+ items:
+ type: object
+
+ Term:
+ oneOf:
+ - $ref: '#/components/schemas/LiteralTerm'
+ - $ref: '#/components/schemas/ComplexTerm'
+
+ LiteralTerm:
Review Comment:
I forgot why I named it this way. Changed it to `Reference`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]