Skip to content

Commit 787a8b5

Browse files
committed
fix(expr): differentiate aggregate functions with and without explicit cast in output schema (apache#26221)
1 parent 350ca76 commit 787a8b5

36 files changed

Lines changed: 1238 additions & 172 deletions

File tree

‎datafusion/core/tests/custom_sources_cases/provider_filter_pushdown.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl TableProvider for CustomProvider {
203203
Expr::Literal(ScalarValue::Int16(Some(i)), _) => *i as i64,
204204
Expr::Literal(ScalarValue::Int32(Some(i)), _) => *i as i64,
205205
Expr::Literal(ScalarValue::Int64(Some(i)), _) => *i,
206-
Expr::Cast(Cast { expr, field: _ }) => match &**expr {
206+
Expr::Cast(Cast { expr, .. }) => match &**expr {
207207
Expr::Literal(lit_value, _) => match lit_value {
208208
ScalarValue::Int8(Some(v)) => *v as i64,
209209
ScalarValue::Int16(Some(v)) => *v as i64,

0 commit comments

Comments
 (0)