You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/08/14 02:06:16 UTC
[GitHub] [calcite] chunweilei commented on a change in pull request #1372:
[CALCITE-3246] NullPointerException while deserializing udf operator.
chunweilei commented on a change in pull request #1372: [CALCITE-3246] NullPointerException while deserializing udf operator.
URL: https://github.com/apache/calcite/pull/1372#discussion_r313679925
##########
File path: core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java
##########
@@ -438,15 +438,17 @@ RexNode toRex(RelInput relInput, Object o) {
} else if (o instanceof Map) {
Map map = (Map) o;
final Map<String, Object> opMap = (Map) map.get("op");
+ if (map.containsKey("class")) {
+ opMap.put("class", map.get("class"));
+ }
final RelDataTypeFactory typeFactory = cluster.getTypeFactory();
Review comment:
What if `opMap` is null?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services