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)