Skip to content

Use of undeclared crate or module parquet when compiling without --feature=parquet flag #8250

@jayzhan211

Description

@jayzhan211

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:

$ cargo test -p datafusion-common
   Compiling datafusion-common v33.0.0 (/Users/alamb/Software/arrow-datafusion2/datafusion/common)
error[E0433]: failed to resolve: use of undeclared crate or module `parquet`
   --> datafusion/common/src/file_options/mod.rs:302:9
    |
302 |     use parquet::{
    |         ^^^^^^^ use of undeclared crate or module `parquet`

error[E0432]: unresolved import `super::parquet_writer`
   --> datafusion/common/src/file_options/mod.rs:316:17
    |
316 |     use super::{parquet_writer::ParquetWriterOptions, StatementOptions};
    |                 ^^^^^^^^^^^^^^ could not find `parquet_writer` in `super`

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions