singhpk234 commented on issue #14879:
URL: https://github.com/apache/iceberg/issues/14879#issuecomment-3669318782
since the deserialization happens on the server the server need to set the
parser context before deserialization and then whole stuff can be deserialized
via :
essentially we first need to make change in our RESTSerializers() introduce
an new api for fromJson and wire the parser context via
server already know the schema etc right, since it holds the table obj
```
static class PlanTableScanRequestDeserializer<T extends
PlanTableScanRequest>
extends JsonDeserializer<T> {
@Override
public T deserialize(JsonParser p, DeserializationContext context)
throws IOException {
JsonNode jsonNode = p.getCodec().readTree(p);
TableScanResponseContext scanContext =
parseScanResponseContext(context);
return (T)
PlanTableScanRequestParser.fromJson(
jsonNode, scanContext.getSpecsById(),
scanContext.isCaseSensitive());
}
}
```
--
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]