Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Oct 2, 2024
1 parent 6dff127 commit 6d156d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpp/src/parquet/arrow/schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,7 @@ Result<bool> ApplyOriginalMetadata(const Field& origin_field, SchemaField* infer
// Restore extension type, if the storage type is the same as inferred
// from the Parquet type
if (ex_type.storage_type()->Equals(*inferred->field->type()) ||
((ex_type.extension_name() == "arrow.json") &&
::arrow::extension::JsonExtensionType::IsSupportedStorageType(
inferred->field->type()->storage_id()))) {
(ex_type.extension_name() == "arrow.json")) {
inferred->field = inferred->field->WithType(origin_type);
}
}
Expand Down

0 comments on commit 6d156d1

Please sign in to comment.