-
Notifications
You must be signed in to change notification settings - Fork 194
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
test: Introduce datafusion engine for executing sqllogictest. #895
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: liurenjie1024 <[email protected]>
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.
Generally make sense to me, i'll defer to someone with more experience in rust.
This follows the datafusion/datafusion/sqllogictest
tests suite.
Do you think its worth mentioning that conversion.rs
and normalize.rs
are both copied over from datafusion/datafusion/sqllogictest
?
Is it possible to take datafusion_sqllogictest
as a dependency instead of copying over the code?
I've synced with @Fokko and I'll add some notice in LICENSE as what we did in pyiceberg.
Currently impossible because it's not published as crates. |
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.
This looks great to me 👍🏼
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 it possible to take datafusion_sqllogictest as a dependency instead of copying over the code?
+1 on this. It seems we don't need any customization (except for ctx.register_catalog
) on the test driver, so it's not economical to maintain a copy. cc @alamb for opinions. We could also consider use a git dependency for now.
I have concerns as using a git dependency, with this approach datafusion community is not treating it as a library. I'm quite interested if datafusion community could consider exposing it as a crate. I've raised discussion, welcome to discuss there! |
I published datafusion-sqllogictest to crates.io (details here apache/datafusion#14229 (comment)) . Let us know if you have any problems! |
It looks great! I'll refator the pr and have a try, thanks! |
Thank you @liurenjie1024 for working on this. I'm going to convert this PR to draft instead. |
Second part of #581.
Introducing datafusion engine for executing sqllogictest.