Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CSV test data (#3044) #3051

Merged
merged 2 commits into from Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.
2 changes: 1 addition & 1 deletion arrow/Cargo.toml
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
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
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