alamb commented on code in PR #14378: URL: https://github.com/apache/datafusion/pull/14378#discussion_r1936297339
########## datafusion/expr-common/src/type_coercion/binary.rs: ########## @@ -869,54 +867,6 @@ fn get_wider_decimal_type( } } -/// Returns the wider type among arguments `lhs` and `rhs`. -/// The wider type is the type that can safely represent values from both types -/// without information loss. Returns an Error if types are incompatible. -pub fn get_wider_type(lhs: &DataType, rhs: &DataType) -> Result<DataType> { Review Comment: this was used in `array_concat` only to compute the return type, and `array_concat` errors at runtime anyways if you pass it arrays with different types. Thus this code is unnecessary so I propose removing it ``` > select array_concat([arrow_cast('1', 'LargeUtf8')], ['2']); Arrow error: Invalid argument error: It is not possible to concatenate arrays of different data types. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org