haizhou-zhao opened a new pull request, #7700:
URL: https://github.com/apache/iceberg/pull/7700
Motivation:
Encountering following error when parsing TableRequirement as defined by the
existing rest catalog spec
```
Caused by: java.lang.IllegalArgumentException: Cannot parse update
requirement. Missing field: type
at
org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
at
org.apache.iceberg.rest.requests.UpdateRequirementParser.fromJson(UpdateRequirementParser.java:159)
at
org.apache.iceberg.rest.RESTSerializers$UpdateRequirementDeserializer.deserialize(RESTSerializers.java:95)
at
org.apache.iceberg.rest.RESTSerializers$UpdateRequirementDeserializer.deserialize(RESTSerializers.java:90)
at
com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:359)
... 54 common frames omitted
```
Change list:
1. Changed the "requirement" field in TableRequirement schema to "type" as
defined by the parser:
https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/rest/requests/UpdateRequirementParser.java#L35
--
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]