s4iko opened a new issue, #16420:
URL: https://github.com/apache/pinot/issues/16420

   Hello,
   
   I tried to execute a query using JSONEXTRACTKEY with some options:
   ```
   SELECT jsonExtractKey(repo, '$..**', 'MAXDEPTH=1;DOTNOTATION=true') 
   FROM myTable
   ```
   
   but ir fails with:
   ```
   ProcessingException(errorCode:150, message:SQLParsingError:
   org.apache.pinot.sql.parsers.SqlCompilationException: Expect 2 arguments are 
required for transform function: jsonExtractKey(jsonFieldName, 'jsonPath')
        at 
org.apache.pinot.sql.parsers.ParserUtils.validateJsonExtractKeyFunction(ParserUtils.java:61)
        at 
org.apache.pinot.sql.parsers.ParserUtils.validateFunction(ParserUtils.java:35)
        at 
org.apache.pinot.sql.parsers.CalciteSqlParser.compileFunctionExpression(CalciteSqlParser.java:805)
        at 
org.apache.pinot.sql.parsers.CalciteSqlParser.toExpression(CalciteSqlParser.java:740))
   ```
   
   Tested on Pinot 1.2.0 and 1.3.0.


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

Reply via email to