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

   ```
   select /*+ aggOptions(is_partitioned_by_group_by_keys = 'true') */
   AirlineID, count(*)
   from airlineStats 
   group by 1
   order by 2
   ```
   causes error b/c directly the `order by` operation cannot know count(*) is a 
non-nullable result column thus the isNullLast check in query context 
compilation will fail (b/c V2 engine doesn't carry the `*` argument over to the 
QueryContext thus causes isNullLast check accessing operand position out of 
bound:
   ```
   java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) 
~[?:?]
        at 
jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) 
~[?:?]
        at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) 
~[?:?]
        at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
        at java.util.ArrayList.get(ArrayList.java:459) ~[?:?]
        at 
org.apache.pinot.core.query.request.context.utils.QueryContextConverterUtils.isNullsLast(QueryContextConverterUtils.java:178)
 ~[classes/:?]
   ```


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