You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "INNOCENT-BOY (via GitHub)" <gi...@apache.org> on 2023/12/01 03:03:53 UTC

Re: [I] Lack of JSON_EXISTS_PATH [pinot]

INNOCENT-BOY commented on issue #12064:
URL: https://github.com/apache/pinot/issues/12064#issuecomment-1835380149

   > One work around is to use `jsonPathString`: https://github.com/apache/pinot/blob/master/pinot-common/src/main/java/org/apache/pinot/common/function/scalar/JsonFunctions.java#L133 E.g.
   > 
   > ```
   > jsonPathString(person, '"$.addresses") != 'null'
   > ```
   > 
   > For `JSON_EXISTS_PATH` you can simply add a scalar function in `JsonFunctions.java` to achieve it. Do you wanna make a contribution for this?
   Hi @xiangfu0, jsonPathString is not work. jsonPathString is only to extract scalar value not nested json data. 
   Sure. I will try to write this function if community needs. 


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