IsmailTosunTnyl commented on issue #52252:
URL: https://github.com/apache/doris/issues/52252#issuecomment-3198437594

   > Aggregate functions (such as array_agg) may return results in an undefined 
order if no sorting rule is specified. This happens because: Doris executes 
aggregations using a parallel execution plan (pipeline + shuffle). When results 
from multiple threads are merged, the order depends on runtime scheduling and 
partition merging. As a result, the same input may produce aggregated arrays in 
different orders. so it’s expected.
   
   The issue is not just the order of the results, but that the expected 
results are missing and different from the documentation. I think there might 
be a race condition. The CTE example returns the correct result.


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