You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/02/16 19:53:00 UTC
[jira] [Resolved] (ARROW-11632) [Rust] csv::Reader doesn't
propagate schema metadata to RecordBatches
[ https://issues.apache.org/jira/browse/ARROW-11632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lamb resolved ARROW-11632.
---------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 9501
[https://github.com/apache/arrow/pull/9501]
> [Rust] csv::Reader doesn't propagate schema metadata to RecordBatches
> ---------------------------------------------------------------------
>
> Key: ARROW-11632
> URL: https://issues.apache.org/jira/browse/ARROW-11632
> Project: Apache Arrow
> Issue Type: Bug
> Components: Rust
> Affects Versions: 4.0.0
> Reporter: Marko Mikulicic
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Rust csv::Reader doesn't propagate schema metadata to RecordBatches it creates:
>
> {code:java}
> let reader = csv::ReaderBuilder::new()
> .with_schema(Arc::new(Schema::new_with_metadata(fields, metadata)))
> .build(file)
> .unwrap();
> let batch = reader.next().unwrap().unwrap();
> assert_eq!(reader.schema(), batch.schema());{code}
>
> The parquet writer crate complains about the schema non matching with this error:
> Record batch schema does not match writer schema
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)