dharanad commented on code in PR #12194:
URL: https://github.com/apache/datafusion/pull/12194#discussion_r1734536015
##########
datafusion/functions-nested/src/utils.rs:
##########
@@ -253,6 +254,21 @@ pub(crate) fn compute_array_dims(
}
}
+pub(crate) fn get_map_entry_field(data_type: &DataType) -> Result<&Fields> {
+ match data_type {
+ DataType::Map(field, _) => {
+ let field_data_type = field.data_type();
+ match field_data_type {
+ DataType::Struct(fields) => Ok(fields),
+ _ => {
+ _internal_err!("Expected a Struct type, got {:?}",
field_data_type)
Review Comment:
Will fix it here https://github.com/apache/datafusion/pull/12209
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]