shanretoo commented on issue #6747:
URL: https://github.com/apache/datafusion/issues/6747#issuecomment-2125062735

   Sorry, my fault. I haven't taken into account the ordering issue. Maybe we 
could add a following match arm in the macro to omit the `order_by` parameter 
and add the output column A to ensure the correctness. What do you think?
   ```rust
   macro_rules! assert_sorted_fn_batches {
       ($EXPR:expr, $EXPECTED: expr) => {
           let sort_by = $EXPR
               .iter()
               .map(|e| {
                   let alias = e.name_for_alias().expect("failed to get an 
alias");
                   col(alias).sort(true, true)
               })
               .collect::<Vec<_>>();
           assert_sorted_fn_batches!($EXPR, $EXPECTED, sort_by);
       };
   ```


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