Andy Grove created ARROW-4628: --------------------------------- Summary: [Rust] [DataFusion] Implement type coercion query optimizer rule Key: ARROW-4628 URL: https://issues.apache.org/jira/browse/ARROW-4628 Project: Apache Arrow Issue Type: Improvement Components: Rust, Rust - DataFusion Affects Versions: 0.12.0 Reporter: Andy Grove Assignee: Andy Grove Fix For: 0.13.0
Now that we have a query optimizer, we should re-implement type coercion as an optimizer rule that rewrites expressions with explicit casts where required, so that at runtime we are only comparing like types. For example, the expression {{float_column < int_column}} would be rewritten as {{float_column < CAST(int_column AS float)}}. DataFusion already has this logic but the current implementation is somewhat hacky and incomplete. Moving it to the optimizer will allow us to implement this correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)