-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use of undeclared crate or module parquet
when compiling without --feature=parquet
flag
#8250
Comments
The workaround is to add It would be great to update the tests in It would be nice to fix this |
I think this would be a good first issue -- it is a nice software engineering exercise to try and make the tests easier to use and doesn't require deep knowledge of DataFusion, just Rust knowledge Perhaps someone could start with #7934 and extend that basic idea |
parquet
parquet
when compiling without --feature=parquet
flag
Hello, can I give it a try? |
Sure |
Thank you very much @Dennis40816 🙏 |
@alamb After a brief review of the code in PR #7934, I would like to confirm my understanding and seek clarification if I have any misconceptions about the program structure or Rust. From my perspective, this issue should address two main tasks:
However, regarding the second point, I am uncertain about its feasibility. The concern arises if users employ new As a Rust beginner, I hope you won't mind if I ask a seemingly naive question. |
Not at all -- we are all learning together and appreciate your contributions ❤️ I think the core issue is that many tests in the Previously the I think the longer term solution is to rewrite tests that don't actually depend on Parquet to use something else (a stub Thus, I suggest we proceed in two phases: Phase 1: fix compilation errors as you suggested
Add a command like
What it actually does is skip the tests when parquet is not enabled Phase 2: Rewrite tests / code over timeThe idea would be to remove |
I recommend we don't do the runtime error -- and instead ensure people don't forget |
Thanks for your clearly suggestions. I'll follow the steps, and then we can look at the results :) |
Thanks! To be clear, I don't think we should do |
Sure! |
Describe the bug
I believe this breaks after #7745, but it has been unsolved for while, so I file an issue to track it. Adding
#[cfg(feature = "parquet")]
is a workaround for now, but if want to run single test inside tests we need to add another flag for it.To Reproduce
Run tests in
datafusion/common/src/scalar.rs
like this:Expected behavior
I hope we can have a way to just run the test without adding flag like before. Either all the test at once or single test.
Additional context
No response
The text was updated successfully, but these errors were encountered: