-
Notifications
You must be signed in to change notification settings - Fork 1.9k
test: support run filter_pushdown on windows machine #13610
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,8 @@ | |||||||||||||||
| //! select * from data limit 10; | ||||||||||||||||
| //! ``` | ||||||||||||||||
|
|
||||||||||||||||
| use std::path::Path; | ||||||||||||||||
|
|
||||||||||||||||
| use arrow::compute::concat_batches; | ||||||||||||||||
| use arrow::record_batch::RecordBatch; | ||||||||||||||||
| use datafusion::physical_plan::collect; | ||||||||||||||||
|
|
@@ -67,7 +69,7 @@ fn generate_file(tempdir: &TempDir, props: WriterProperties) -> TestParquetFile | |||||||||||||||
| async fn single_file() { | ||||||||||||||||
| // Only create the parquet file once as it is fairly large | ||||||||||||||||
|
|
||||||||||||||||
| let tempdir = TempDir::new().unwrap(); | ||||||||||||||||
| let tempdir = TempDir::new_in(Path::new(".")).unwrap(); | ||||||||||||||||
| // Set row group size smaller so can test with fewer rows | ||||||||||||||||
| let props = WriterProperties::builder() | ||||||||||||||||
| .set_max_row_group_size(1024) | ||||||||||||||||
|
|
@@ -223,7 +225,7 @@ async fn single_file() { | |||||||||||||||
|
|
||||||||||||||||
| #[tokio::test] | ||||||||||||||||
| async fn single_file_small_data_pages() { | ||||||||||||||||
| let tempdir = TempDir::new().unwrap(); | ||||||||||||||||
| let tempdir = TempDir::new_in(Path::new(".")).unwrap(); | ||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could this end up litterring in the local git checkout when running the tests?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you perhaps try to undo this change? (same above)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Emm, path which hold by impl Drop for TempDir {
fn drop(&mut self) {
if !self.keep {
let _ = remove_dir_all(self.path());
}
}
}
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Hi @findepi. It's a bummer, but we still have to make this change. Because, I found out from the previous PR #13531 that the temp directory (i.g. "C:\Users\RUNNER~1\AppData\Local\Temp") that contains the special character datafusion/datafusion/common/src/test_util.rs Lines 224 to 229 in fdb221f
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you @zhuliquan -- using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
will this work too if a test panics?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Actually, Line 68 in 2ac8af8
|
||||||||||||||||
|
|
||||||||||||||||
| // Set low row count limit to improve page filtering | ||||||||||||||||
| let props = WriterProperties::builder() | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this test exercised on the CI?
datafusion/.github/workflows/rust.yml
Lines 326 to 339 in ddee471
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it, I also suspect it in PR #11575. However, this case run ok on my windows machine, and when I remove the code referenced above, this case can't be ok (got below error).