brayanjuls commented on issue #9081: URL: https://github.com/apache/arrow-datafusion/issues/9081#issuecomment-1926858967
@alamb I debugged this section of the code and it is not ignoring the metadata. The issue happens in the following code when listing the table. The metadata is being ignored when building the table schema. Creating the schema from the schema instead of fields in line 551 solved the issue in my local environment. This is the modification I did `let mut builder = SchemaBuilder::from(file_schema.deref().clone());` . I am not sure if I should look for other functions where similar situations my be happening please let me know. https://github.com/apache/arrow-datafusion/blob/840499fbd3c25bf82a6ee0641ef6888079e096da/datafusion/core/src/datasource/listing/table.rs#L541-L568 -- 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]
