LuciferYang opened a new issue, #9766:
URL: https://github.com/apache/paimon/issues/9766

   ### Bug description
   
   The public `DataTypeJsonParser.parseDataField(JsonNode)` entry passes a null 
field counter into the private overload. Parsing a field json without an `"id"` 
node therefore throws a bare `NullPointerException` from the counter increment, 
although the sibling public `parseDataType(JsonNode)` entry auto-assigns ids 
for exactly such input.
   
   Reachable from the `create function` procedures: Flink/Spark 
`CreateFunctionProcedure` → `ParameterUtils.parseDataFieldArray` → 
`DataTypeJsonParser.parseDataField` on user-provided 
`input_params`/`return_params` json, e.g. `[{"name":"x","type":"INT"}]` (no 
`"id"`).
   
   ### Expected behavior
   
   Mirror `parseDataType`: auto-assign the id (or otherwise fail with a clear 
message) instead of an NPE.


-- 
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]

Reply via email to