aectaan commented on issue #15291: URL: https://github.com/apache/datafusion/issues/15291#issuecomment-2732112476
@alamb it's related to common subexpr eliminate: ``` called `Result::unwrap()` on an `Err` value: Context("Optimizer rule 'common_sub_expression_eliminate' failed", SchemaError(FieldNotFound { field: Column { relation: None, name: "count(test.col_utf8) FILTER (WHERE $1 - Int64(1) <= test.col_int64)" }, valid_fields: [Column { relation: None, name: "count(test.col_utf8) FILTER (WHERE __common_expr_1 AS $1 - Int64(1) <= test.col_int64)" }, Column { relation: None, name: "count(test.col_utf8) FILTER (WHERE $1 - Int64(2) <= test.col_int64 AND test.col_uint32 >= Int64(0))" }, Column { relation: None, name: "count(test.col_utf8) FILTER (WHERE $1 - Int64(2) <= test.col_int64 AND test.col_uint32 >= Int64(0) AND test.col_uint32 >= Int64(0))" }] }, Some(""))) ``` -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org