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/03/03 11:50:00 UTC
[jira] [Created] (ARROW-11851) [Rust][DataFusion] Add coercion
support for `NULL` literals
Andrew Lamb created ARROW-11851:
-----------------------------------
Summary: [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
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)