You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Jackie-Jiang (via GitHub)" <gi...@apache.org> on 2023/09/25 20:06:41 UTC
[GitHub] [pinot] Jackie-Jiang commented on a diff in pull request #11673: Change json_format to return java null when java null is received
Jackie-Jiang commented on code in PR #11673:
URL: https://github.com/apache/pinot/pull/11673#discussion_r1336338296
##########
pinot-common/src/main/java/org/apache/pinot/common/function/scalar/JsonFunctions.java:
##########
@@ -79,6 +79,9 @@ public static String toJsonMapStr(@Nullable Map map)
@ScalarFunction(nullableParameters = true)
public static String jsonFormat(Object object)
throws JsonProcessingException {
+ if (object == null) {
Review Comment:
This is intentionally added in #8382. If we want to return null, removing the `nullableParameters = true` will achieve that. Any specific reason why you don't want string `'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.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org