[ https://issues.apache.org/jira/browse/ARROW-11851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332392#comment-17332392 ]
Andrew Lamb commented on ARROW-11851: ------------------------------------- Migrated to github: https://github.com/apache/arrow-datafusion/issues/185 > [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)