houqp commented on a change in pull request #605:
URL: https://github.com/apache/arrow-datafusion/pull/605#discussion_r663447375
##########
File path: datafusion/src/sql/planner.rs
##########
@@ -560,7 +560,8 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
// SELECT c1 AS m FROM t HAVING c1 > 10;
// SELECT c1, MAX(c2) AS m FROM t GROUP BY c1 HAVING MAX(c2)
> 10;
//
- resolve_aliases_to_exprs(&having_expr, &alias_map)
+ let having_expr = resolve_aliases_to_exprs(&having_expr,
&alias_map)?;
+ normalize_col(having_expr, &projected_plan)
Review comment:
needed if having expression referenced using join columns with
unqualified column name.
--
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]