-
Notifications
You must be signed in to change notification settings - Fork 131
sqllogictest runner for DF and DuckDB on Vortex #6273
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
Conversation
7b6bccf to
9dd8b48
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
0d43c0b to
f2f1fae
Compare
7ea17b1 to
a1ba848
Compare
Signed-off-by: Adam Gutglick <[email protected]>
a1ba848 to
e609774
Compare
vortex-sqllogictest/src/duckdb.rs
Outdated
| pub fn try_new(pb: ProgressBar) -> Result<Self, DuckDBTestError> { | ||
| let dir = tempdir().map_err(|e| DuckDBTestError::Other(e.to_string()))?; | ||
| let config = Config::new()?; | ||
| let db = Database::open_with_config(dir.path().join("duckdb.db"), config)?; |
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.
why not use in-mem?
| }), | ||
| }) | ||
| } | ||
| fn normalize_column_type(dtype: LogicalType) -> DFColumnType { |
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.
explain this
joseph-isaacs
left a comment
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.
lg, I really think we should handle clean up ASAP
Signed-off-by: Adam Gutglick <[email protected]>
Signed-off-by: Adam Gutglick <[email protected]>
Signed-off-by: Adam Gutglick <[email protected]>
| .build()? | ||
| .block_on(run_all())?; | ||
| Ok(()) | ||
| } |
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.
any reason not to use the macro?
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.
not that I can remember
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.
changed
Signed-off-by: Adam Gutglick <[email protected]>
Signed-off-by: Adam Gutglick <[email protected]>
|
to address @joseph-isaacs comment from before, I've added examples/readme about how to use temp directories for storage. |
Does this PR closes an open issue or discussion?
What changes are included in this PR?
The main change in this PR is the introduction of the
vortex-sqllogictestcrate (not intended for publication), which introduces a new way of writing tests by defining slt scripts that are run by both DuckDB and DataFusion.It includes one very small test which we can keep building upon.
It also includes a few changes to
vortex-duckdbto facilitate exposing the information.What is the rationale for this change?
We often rely on our benchmarks to test some codepaths that we can't successfully trigger from traditional tests, this tool allows us to minimize those cases more effectively and in a reproducible way.
It also helps us make sure that we produce the same data on different integrations, and that we're aligned with their Parquet implementation, at least to the degree that the tools themselves provide the same semantics.
How is this change tested?
It adds a downstream test.
Are there any user-facing changes?
Adds some minor functionality to
vortex-duckdb, which is a private crate.