Skip to content

Apache DataFusion SQL Query Engine

fix: remove wrong comment about having (#4555)

jakevin747e5a7bf35a
diff --git a/datafusion/sql/src/planner.rs b/datafusion/sql/src/planner.rs
index 82d8c38342..65bb7dbb73 100644
--- a/datafusion/sql/src/planner.rs
+++ b/datafusion/sql/src/planner.rs
@@ -1179,12 +1179,10 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
//
// For example:
//
- // SELECT c1 AS m FROM t HAVING m > 10;
// SELECT c1, MAX(c2) AS m FROM t GROUP BY c1 HAVING m > 10;
//
// are rewritten as, respectively:
//
- // SELECT c1 AS m FROM t HAVING c1 > 10;
// SELECT c1, MAX(c2) AS m FROM t GROUP BY c1 HAVING MAX(c2) > 10;
//
let having_expr = resolve_aliases_to_exprs(&having_expr, &alias_map)?;