[
https://issues.apache.org/jira/browse/ARROW-4628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661651#comment-17661651
]
Rok Mihevc commented on ARROW-4628:
-----------------------------------
This issue has been migrated to [issue
#15985|https://github.com/apache/arrow/issues/15985] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [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
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.13.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)