Skip to content

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
};
}

/// 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

}

/// 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
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