emkornfield commented on a change in pull request #8366:
URL: https://github.com/apache/arrow/pull/8366#discussion_r500745029
##########
File path: cpp/src/parquet/arrow/schema.cc
##########
@@ -725,23 +778,18 @@ Status ApplyOriginalStorageMetadata(const Field&
origin_field, SchemaField* infe
field_metadata = field_metadata->Merge(*inferred->field->metadata());
}
inferred->field = inferred->field->WithMetadata(field_metadata);
- }
-
- if (origin_type->id() == ::arrow::Type::EXTENSION) {
- // Restore extension type, if the storage type is as read from Parquet
- const auto& ex_type = checked_cast<const
::arrow::ExtensionType&>(*origin_type);
- if (ex_type.storage_type()->Equals(*inferred_type)) {
- inferred->field = inferred->field->WithType(origin_type);
- }
+ modified = true;
}
// TODO Should apply metadata recursively to children, but for that we need
Review comment:
remove comment?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]