duongcongtoai commented on issue #14218:
URL: https://github.com/apache/datafusion/issues/14218#issuecomment-2628645012

   and i don't think this error is caused by unnest, for example with this new 
plan
   ```
       let plan =
           LogicalPlanBuilder::scan("t", 
Arc::new(DefaultTableSource::new(provider)), None)?
               .filter(binary_expr(
                   col("column1"),
                   datafusion_expr::Operator::Gt,
                   lit(ScalarValue::new_utf8("some_val")),
               ))?
               // .unnest_column("arr_col")?
               .build()?;
   ```
   It will throw the same error because datafusion cannot handle the type 
difference at execution time, meaning the table provider should correctly 
provide the type for column `column1` for type_coercion to happen (at plan time)


-- 
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

Reply via email to