jackwener commented on issue #4854: URL: https://github.com/apache/arrow-datafusion/issues/4854#issuecomment-1378386049
I have found this BUG. It's because `rewrite_sort_col_by_aggs`. When meet `LogicalProject()`, it will go through it, and continue find `Aggregate`. So, it will bind `sort time` -> `sort t.time`. When meet `sum(value) AS "value"` in projection, it cause AmbiguousReference. The implementation mistake projection is just can select column. In fact, projection can contain some function or more complex thing, which can change output(schema), -- 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...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org