danielcweeks commented on code in PR #9695: URL: https://github.com/apache/iceberg/pull/9695#discussion_r1641334986
########## open-api/rest-catalog-open-api.yaml: ########## @@ -3789,6 +4003,21 @@ components: EmptyResponse: $ref: '#/components/examples/ListNamespacesEmptyExample' + PayloadTooLargeWithPlanResponse: + description: + Payload is too large. Required to use /preplan before /plan + content: + application/json: + schema: + $ref: '#/components/schemas/IcebergErrorResponse' + example: { + "error": { + "message": " Cannot plan scan: too many task results; use /preplan to split planning across multiple requests", + "type": "PayloadTooLargeWithPlanException", + "code": 413 Review Comment: I think `413` isn't the right code here. This code indicates the request content is too large, not the response. I believe `422` is more appropriate -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org