apache / datafusion

Apache DataFusion SQL Query Engine
https://datafusion.apache.org/
Apache License 2.0
6.18k stars 1.17k forks source link

common_sub_expression_eliminate internal error #3418

Open andygrove opened 2 years ago

andygrove commented 2 years ago

Describe the bug

Error: Internal("Optimizer rule 'common_sub_expression_eliminate' failed due to unexpected error: Error during planning: 'Date64 <= Date32' can't be evaluated because there isn't a common type to coerce the types to")

To Reproduce tbd

Expected behavior

Additional context

liukun4515 commented 2 years ago

Does the type coercion rule should be before there rules?