You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Apache Arrow JIRA Bot (Jira)" <ji...@apache.org> on 2022/10/13 17:52:00 UTC
[jira] [Assigned] (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 ]
Apache Arrow JIRA Bot reassigned ARROW-11402:
---------------------------------------------
Assignee: (was: Ben Kietzman)
> [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
> Priority: Major
> Labels: dataset
>
> 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.10#820010)