You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Raúl Cumplido (Jira)" <ji...@apache.org> on 2022/04/21 15:51:00 UTC

[jira] [Updated] (ARROW-11402) [C++][Dataset] Allow more aggresive implicit casts for literals

     [ https://issues.apache.org/jira/browse/ARROW-11402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raúl Cumplido updated ARROW-11402:
----------------------------------
    Fix Version/s: 9.0.0
                       (was: 8.0.0)

> [C++][Dataset] Allow more aggresive implicit casts for literals
> ---------------------------------------------------------------
>
>                 Key: ARROW-11402
>                 URL: https://issues.apache.org/jira/browse/ARROW-11402
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ben Kietzman
>            Assignee: Ben Kietzman
>            Priority: Major
>              Labels: dataset
>             Fix For: 9.0.0
>
>
> After ARROW-8919, a literal in an Expression may cause unnecessary implicit casting of a column. For example {{equal(field_ref("i8"), literal(1))}} will cause column i8 to be promoted to the type of the literal (int32) for comparison. Since we have access to the literal value at bind time we could examine {{1}} and determine that it can safely be *de*moted to int8, which produces a semantically equivalent and more performant filter.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)