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

Minor: Move shared testing code into datafusion_common #7334

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Aug 18, 2023

Which issue does this PR close?

Final prep for #1754

Rationale for this change

physical plan can't depend on code in core when I pull it out

What changes are included in this PR?

move some functions from datafusion/core/src/test_util.rs to datafusion/common/src/test_util.rs

Are these changes tested?

covered by existing tests

Are there any user-facing changes?

No -- I left backward compatible pub use

@github-actions github-actions bot added the core Core DataFusion crate label Aug 18, 2023
@@ -62,3 +64,152 @@ macro_rules! assert_not_contains {
);
};
}

/// Returns the arrow test data directory, which is by default stored
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is moved code -- no changes

@@ -1249,4 +1249,20 @@ mod tests {
}
}
}

/// Get the schema for the aggregate_test_* csv files with an additional filed not present in the files.
fn aggr_test_schema_with_missing_col() -> SchemaRef {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this out as this is the only place it is used and rewrote it to append the column explicitly rather than copy/paste with one line difference

@alamb alamb marked this pull request as ready for review August 18, 2023 19:24
@alamb alamb merged commit 25e6c7d into apache:main Aug 21, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants