HuaHuaY commented on code in PR #50892:
URL: https://github.com/apache/arrow/pull/50892#discussion_r3956520511
##########
cpp/src/parquet/arrow/schema.cc:
##########
@@ -497,6 +518,11 @@ Status FieldToNode(const std::string& name, const
std::shared_ptr<Field>& field,
return VariantToNode(variant_type, name, field->nullable(), field_id,
properties,
arrow_properties, out);
+ } else if (ext_type->extension_name() == kFileExtensionName) {
+ auto file_type =
std::static_pointer_cast<::arrow::extension::FileExtensionType>(
+ field->type());
+ return FileToNode(file_type, name, field->nullable(), field_id,
properties,
+ arrow_properties, out);
}
Review Comment:
An extension type marked with `kFileExtensionName` should not be of any
other type.
--
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]