[ 
https://issues.apache.org/jira/browse/CALCITE-6294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071348#comment-18071348
 ] 

Zhen Chen commented on CALCITE-6294:
------------------------------------

Hi [~caicancai] , PR title is "Support CNF condition of Arrow ArrowAdapter", 
but Jira
title is "Support IN filter in Arrow adapter". Perhaps we should change the 
Jira title, since the commit is merged into main branch. The another suggestion 
is we should thanks for the reviewers, this is a good habit for the calcite 
community.

> Support IN filter in Arrow adapter
> ----------------------------------
>
>                 Key: CALCITE-6294
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6294
>             Project: Calcite
>          Issue Type: Sub-task
>          Components: arrow-adapter
>            Reporter: hongyu guo
>            Assignee: Caican Cai
>            Priority: Major
>             Fix For: 1.42.0
>
>
> For example:
> {code:java}
> select "intField", "stringField"
> from arrowdata
> where "intField" in (0, 1, 2)
> {code}
> will throw an exception
> {code:java}
> java.lang.AssertionError: cannot translate OR(=($0, 0), =($0, 1), =($0, 2))
>       at 
> org.apache.calcite.adapter.arrow.ArrowTranslator.translateMatch(ArrowTranslator.java:70)
>      at 
> org.apache.calcite.adapter.arrow.ArrowTranslator.translateAnd(ArrowTranslator.java:109)
>       at 
> org.apache.calcite.adapter.arrow.ArrowTranslator.translateMatch(ArrowTranslator.java:68)
>      at 
> org.apache.calcite.adapter.arrow.ArrowFilter.<init>(ArrowFilter.java:43)     
> at 
> org.apache.calcite.adapter.arrow.ArrowRules$ArrowFilterRule.convert(ArrowRules.java:97)
>       at 
> org.apache.calcite.adapter.arrow.ArrowRules$ArrowFilterRule.onMatch(ArrowRules.java:87)
>  {code}
> See 
> org.apache.calcite.adapter.arrow.ArrowAdapterTest#testArrowProjectFieldsWithInFilter



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to