vldpyatkov opened a new pull request, #5393:
URL: https://github.com/apache/calcite/pull/5393

   ## Jira Link
   [CALCITE-7919](https://issues.apache.org/jira/browse/CALCITE-7919)
   ## Changes Proposed
   Fixes multi-column sorting with ARRAY and ROW keys. Composite values are now 
compared element by element instead of being cast to Comparable.
   The following query now works and returns IDs 3, 2, 1:
   SELECT id
   FROM (
     VALUES
       (1, ARRAY[2, 0]),
       (2, ARRAY[1, 2]),
       (3, ARRAY[1, 1])
   ) AS t(id, k)
   ORDER BY k, id;


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

Reply via email to