Skip to content

Commit 96c22f9

Browse files
committed
[HSTACK] - fix PushDownFilter for GROUP BY on uppercase col name
1 parent 987d143 commit 96c22f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

datafusion/optimizer/src/push_down_filter.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,11 @@ impl OptimizerRule for PushDownFilter {
939939
let group_expr_columns = agg
940940
.group_expr
941941
.iter()
942-
.map(|e| Ok(Column::from_qualified_name(e.schema_name().to_string())))
942+
.map(|e| {
943+
Ok(Column::from_qualified_name_ignore_case(
944+
e.schema_name().to_string(),
945+
))
946+
})
943947
.collect::<Result<HashSet<_>>>()?;
944948

945949
let predicates = split_conjunction_owned(filter.predicate);

0 commit comments

Comments
 (0)