waynexia commented on code in PR #27536:
URL: https://github.com/apache/datafusion/pull/27536#discussion_r4626842278
##########
datafusion/common/src/metadata.rs:
##########
@@ -225,6 +225,20 @@ pub fn merge_metadata_for_union<'a>(
})
}
+/// Removes extension type information for a cast to a plain storage type.
+/// Ordinary field metadata is preserved.
+///
+/// # Public Only for Internal Use:
+///
+/// This is not a public API and is for internal use only; see [API policy]
for details.
+///
+/// [API policy]:
https://datafusion.apache.org/contributor-guide/api-health.html#internal-public-apis
+#[doc(hidden)]
+pub fn strip_extension_type(metadata: &mut Metadata) {
Review Comment:
Thinking if this new pub interface is necessary, can we `remove` those
metadata directly on where this util method is used? Maybe we need to add a new
dep `arrow-schema`, but it's indirect dep of `arrow` anyway
--
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]