jayzhan211 commented on issue #15676:
URL: https://github.com/apache/datafusion/issues/15676#issuecomment-2795994676

   > when given no ordering that will make results deterministic will be not 
deterministic (depending on how te function is executed)
   
   Is it possible to maintain order in group case? We read the batch in order 
so the ordering is maintained.
   
   If there is some case that we can't maintain ordering then I think it makes 
sense to have a non-deterministic output.
   
   I only now that when the order is given, we might not get the "true" last 
value. See https://github.com/apache/datafusion/pull/14232
   
   when we have `last(a order by b)` and `b` are all the same, we don't return 
the "true" last value.


-- 
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: github-unsubscr...@datafusion.apache.org

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


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

Reply via email to