Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
Description
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')
```