jayzhan211 commented on code in PR #27802:
URL: https://github.com/apache/datafusion/pull/27802#discussion_r4739899480
##########
datafusion/expr/src/expr_rewriter/order_by.rs:
##########
@@ -23,12 +25,18 @@ pub fn rewrite_sort_cols_by_aggs(
} else {
vec![]
};
+ let shadowed = shadowed_output_columns(plan)?;
Review Comment:
Optional cleanup: the description says there are no public API changes
because the touched functions are private, but `rewrite_sort_cols_by_aggs` is
public (`datafusion_expr::expr_rewriter`), and downstream callers that sort
above their own projections will now get the output column for a colliding
name. Could the "user-facing changes" section name it?
--
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]