alamb commented on code in PR #15211: URL: https://github.com/apache/datafusion/pull/15211#discussion_r1999332505
########## datafusion/substrait/src/logical_plan/consumer.rs: ########## @@ -1074,6 +1074,9 @@ pub async fn from_project_rel( // leaving only explicit expressions. let mut explicit_exprs: Vec<Expr> = vec![]; + // For WindowFunctions, we need to wrap them in a Window relation. If there are duplicates, + // we can do the window'ing only once, then the project will duplicate the result. + let mut window_exprs: HashSet<Expr> = HashSet::new(); Review Comment: It seems like an improvement over what is on main, so I think we could merge this PR as is, but this seems the potential reordering might cause potentially confusing intermittently variable output -- 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