Skip to content

Commit

Permalink
Move CSV test data (#3044) (#3051)
Browse files Browse the repository at this point in the history
* Move CSV test data (#3044)

* Format
  • Loading branch information
tustvold authored Nov 11, 2022
1 parent 0139682 commit 02a3f5c
Show file tree
Hide file tree
Showing 12 changed files with 430 additions and 427 deletions.
425 changes: 423 additions & 2 deletions arrow-csv/src/reader.rs

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,4 @@ required-features = ["test_utils", "ipc"]

[[test]]
name = "csv"
required-features = ["csv"]
required-features = ["csv", "chrono-tz"]
5 changes: 4 additions & 1 deletion arrow/examples/read_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ fn main() {
Field::new("lng", DataType::Float64, false),
]);

let path = format!("{}/test/data/uk_cities.csv", env!("CARGO_MANIFEST_DIR"));
let path = format!(
"{}/../arrow-csv/test/data/uk_cities.csv",
env!("CARGO_MANIFEST_DIR")
);
let file = File::open(path).unwrap();

let mut csv =
Expand Down
2 changes: 1 addition & 1 deletion arrow/examples/read_csv_infer_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::fs::File;

fn main() {
let path = format!(
"{}/test/data/uk_cities_with_headers.csv",
"{}/../arrow-csv/test/data/uk_cities_with_headers.csv",
env!("CARGO_MANIFEST_DIR")
);
let file = File::open(path).unwrap();
Expand Down
Loading

0 comments on commit 02a3f5c

Please sign in to comment.