izveigor commented on code in PR #7338:
URL: https://github.com/apache/arrow-datafusion/pull/7338#discussion_r1308283800
##########
datafusion/optimizer/src/analyzer/type_coercion.rs:
##########
@@ -553,6 +553,198 @@ fn coerce_arguments_for_signature(
.collect::<Result<Vec<_>>>()
}
+// TODO: Move this function to arrow-rs or common array utils module
+// base type is the non-list type
+fn base_type(data_type: &DataType) -> Result<DataType> {
Review Comment:
The function definitely has a practical use but it should be expanded for
all nested data types (list, fixed_list, map, union ...).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]