Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Jul 2, 2022
1 parent ee505bd commit 1e34a84
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion integration-testing/src/bin/arrow-file-to-stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() -> Result<()> {
let filename = args.file_name;
let mut f = File::open(filename)?;
let metadata = read::read_file_metadata(&mut f)?;
let mut reader = read::FileReader::new(f, metadata.clone(), None);
let mut reader = read::FileReader::new(f, metadata.clone(), None, None);

let options = write::WriteOptions { compression: None };
let mut writer = write::StreamWriter::new(std::io::stdout(), options);
Expand Down
4 changes: 2 additions & 2 deletions integration-testing/src/bin/arrow-json-integration-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn arrow_to_json(arrow_name: &str, json_name: &str, verbose: bool) -> Result<()>

let mut arrow_file = File::open(arrow_name)?;
let metadata = read::read_file_metadata(&mut arrow_file)?;
let reader = read::FileReader::new(arrow_file, metadata.clone(), None);
let reader = read::FileReader::new(arrow_file, metadata.clone(), None, None);

let names = metadata
.schema
Expand Down Expand Up @@ -118,7 +118,7 @@ fn validate(arrow_name: &str, json_name: &str, verbose: bool) -> Result<()> {
// open Arrow file
let mut arrow_file = File::open(arrow_name)?;
let metadata = read::read_file_metadata(&mut arrow_file)?;
let reader = read::FileReader::new(arrow_file, metadata, None);
let reader = read::FileReader::new(arrow_file, metadata, None, None);
let arrow_schema = reader.schema();

// compare schemas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ async fn record_batch_from_message(
fields,
ipc_schema,
None,
None,
dictionaries,
arrow_format::ipc::MetadataVersion::V5,
&mut reader,
Expand Down
8 changes: 4 additions & 4 deletions src/io/ipc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
//! // Fetch some of the data and get the reader back
//! let mut reader = File::open(&path)?;
//! let metadata = read_file_metadata(&mut reader)?;
//! let mut filereader = FileReader::new(reader, metadata, None);
//! let row1 = filereader.next().unwrap(); // [[-1, 1], [1, -1]]
//! let row2 = filereader.next().unwrap(); // [[-1, 1], [1, -1]]
//! let mut reader = filereader.into_inner();
//! let mut reader = FileReader::new(reader, metadata, None, None);
//! let row1 = reader.next().unwrap(); // [[-1, 1], [1, -1]]
//! let row2 = reader.next().unwrap(); // [[-1, 1], [1, -1]]
//! let mut reader = reader.into_inner();
//! // Do more stuff with the reader, like seeking ahead.
//! # Ok::<(), Error>(())
//! ```
Expand Down
6 changes: 3 additions & 3 deletions tests/it/io/ipc/read/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ fn read_limited() -> Result<()> {
test_limit("1.0.0-littleendian", "generated_primitive", 2)?;
test_limit("1.0.0-littleendian", "generated_dictionary", 2)?;
test_limit("1.0.0-littleendian", "generated_union", 2)?;
//test_limit("1.0.0-littleendian", "generated_map", 2)?;
//test_limit("1.0.0-littleendian", "generated_nested_dictionary", 2)?;
//test_limit("1.0.0-littleendian", "generated_nested", 2)?;
test_limit("1.0.0-littleendian", "generated_map", 2)?;
test_limit("1.0.0-littleendian", "generated_nested_dictionary", 2)?;
test_limit("1.0.0-littleendian", "generated_nested", 2)?;
Ok(())
}

0 comments on commit 1e34a84

Please sign in to comment.