fx19880617 opened a new pull request #5940:
URL: https://github.com/apache/incubator-pinot/pull/5940


   ## Description
   This PR fixes the query like:
   ```
   select Hour(event_time), group_city, sum(rsvp_count) from meetupRsvp group 
by Hour(event_time), group_city order by sum(rsvp_count) desc limit 10
   ```
   which raises exceptions:
   ```
   QueryExecutionError:
   org.apache.pinot.core.query.exception.BadQueryRequestException: Unsupported 
function: other with 1 parameters
       at 
org.apache.pinot.core.operator.transform.function.TransformFunctionFactory.get(TransformFunctionFactory.java:181)
   ...
   ```
   
   The reason is that `HOUR` is a pinot UDF which CalciteSQL parser doesn't 
recognize and marked the SQL_KIND as `OTHER` with the real function name inside 
the function info.
   


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to