Ben Kietzman created ARROW-11402:
------------------------------------
Summary: [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
Fix For: 4.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.3.4#803005)