manikBS commented on PR #16910:
URL: https://github.com/apache/pinot/pull/16910#issuecomment-3343374486
@Jackie-Jiang
I have kept the existing scalar functions behavior intact as it could effect
the existing injestion flows. For JsonExtractScalar, the behavior (same as
JsonExtractScalarTransformFunction) is as follows:
Case: JSON object is malformed, JSON path is malformed, or JSON path does
not exist
- For single value, If default value is null -> throw error
- For single value, If default value is not provided -> throw error
- For single value, If default value is not null -> return default value
- For multi-value -> return empty array
Case: JSON object and JSON path is correct
- For single value -> return the result as is
- For multi-value -> if there are nulls. for example {1, 2, 3, null, 4}
return {1, 2, 3, defaultvalue, 4}
--
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]