You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/15 17:39:00 UTC
[jira] [Updated] (ARROW-11632) 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 ]
ASF GitHub Bot updated ARROW-11632:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Time Spent: 10m
> 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)