You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Tim Grein (Jira)" <ji...@apache.org> on 2024/07/15 15:31:00 UTC

[jira] [Commented] (CALCITE-6296) Support IS NULL in Arrow adapter

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

Tim Grein commented on CALCITE-6296:
------------------------------------

Hey [~hongyuguo],

Just started to contribute to Calcite and looking for some issues to work on. Do you mind, if I take this one?
I'll just self-assign it for now to get the notifications. Feel free to reassign, if someone is already working on it!

> Support IS NULL in Arrow adapter
> --------------------------------
>
>                 Key: CALCITE-6296
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6296
>             Project: Calcite
>          Issue Type: Sub-task
>          Components: arrow-adapter
>            Reporter: hongyu guo
>            Priority: Major
>
> {code:sql}
> select "intField", "stringField"
> from arrowdata
> where "intField" is null
> {code}
> will throw an exception
> {code:java}
> java.lang.AssertionError: cannot translate IS NULL($0)
> 	at org.apache.calcite.adapter.arrow.ArrowTranslator.translateMatch2(ArrowTranslator.java:131)
> 	at org.apache.calcite.adapter.arrow.ArrowTranslator.translateAnd(ArrowTranslator.java:111)
> 	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}



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