[
https://issues.apache.org/jira/browse/CALCITE-6668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6668.
----------------------------------
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/aced08dfa22c9909de6000dbc194208060050696
Thank you for the contribution [~caicancai]
Thank you for the review [~suibianwanwan3333]
> Arrow adapter should support IS FALSE Operator and IS TRUE Operator
> -------------------------------------------------------------------
>
> Key: CALCITE-6668
> URL: https://issues.apache.org/jira/browse/CALCITE-6668
> Project: Calcite
> Issue Type: Bug
> Components: arrow-adapter
> Affects Versions: 1.38.0
> Reporter: Caican Cai
> Assignee: Caican Cai
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> Arrow adapter should support IS FALSE Operator and IS TRUE Operator
> Here is a simple example
> {code:java}
> String sql = "select \"booleanField\"\n"
> + "from arrowdatatype\n"
> + "where \"booleanField\" is true";
> {code}
> Its plan can be optimized to
> {code:java}
> String plan = "PLAN=ArrowToEnumerableConverter\n"
> + " ArrowProject(booleanField=[$7])\n"
> + " ArrowFilter(condition=[$7])\n"
> + " ArrowTableScan(table=[[ARROW, ARROWDATATYPE]], fields=[[0,
> 1, 2, 3, 4, 5, 6, 7, 8, 9]])\n\n";
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)