Skip to content

Commit d457951

Browse files
committed
[HSTACK] - fix PushDownFilter for GROUP BY on uppercase col name
1 parent 98bc7f4 commit d457951

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
@@ -940,7 +940,11 @@ impl OptimizerRule for PushDownFilter {
940940
let group_expr_columns = agg
941941
.group_expr
942942
.iter()
943-
.map(|e| Ok(Column::from_qualified_name(e.schema_name().to_string())))
943+
.map(|e| {
944+
Ok(Column::from_qualified_name_ignore_case(
945+
e.schema_name().to_string(),
946+
))
947+
})
944948
.collect::<Result<HashSet<_>>>()?;
945949

946950
let predicates = split_conjunction_owned(filter.predicate);

0 commit comments

Comments
 (0)