You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/26 13:32:03 UTC

[jira] [Closed] (ARROW-11851) [Rust][DataFusion] Add coercion support for `NULL` literals

     [ https://issues.apache.org/jira/browse/ARROW-11851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lamb closed ARROW-11851.
-------------------------------
    Resolution: Invalid

> [Rust][DataFusion] Add coercion support for `NULL` literals
> -----------------------------------------------------------
>
>                 Key: ARROW-11851
>                 URL: https://issues.apache.org/jira/browse/ARROW-11851
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Rust - DataFusion
>            Reporter: Andrew Lamb
>            Priority: Major
>
> As we observed in https://github.com/apache/arrow/pull/9565#discussion_r586347165 datafusion won't coerce null literals, forcing strange syntax such as:
> ```
> rpad('hi', CAST(NULL AS INT), 'xy')
> We should add automatic coercion logic from the null literal to any type and this expression should work just fine (produce a NULL output)
> ```
> rpad('hi', NULL, 'xy')
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)