comphead commented on code in PR #3536:
URL: https://github.com/apache/datafusion-comet/pull/3536#discussion_r2830977351
##########
native/core/src/execution/operators/scan.rs:
##########
@@ -582,3 +588,77 @@ impl InputBatch {
InputBatch::Batch(columns, num_rows)
}
}
+
+/// Adapts a Map array to match a target schema's Map type.
+/// This handles the common case where the field names differ (e.g., Parquet
uses "key_value"
+/// while Spark uses "entries") but the key/value types are the same.
+/// Returns None if the types are not compatible or not Map types.
+fn adapt_map_to_schema(column: &ArrayRef, target_type: &DataType) ->
Option<ArrayRef> {
Review Comment:
removed it, as it repeated another cast
--
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]