Skip to content

DataFusion compilation error with --no-default-features #1217

@alamb

Description

@alamb

Describe the bug
DataFusion no longer compiles without default features:

To Reproduce

cargo test --no-default-features -p datafusion
   Compiling datafusion v5.1.0 (/Users/alamb/Software/arrow-datafusion/datafusion)
error[E0432]: unresolved import `crate::physical_plan::file_format::DEFAULT_PARTITION_COLUMN_DATATYPE`
  --> datafusion/src/datasource/listing/table.rs:31:43
   |
31 |         file_format::{PhysicalPlanConfig, DEFAULT_PARTITION_COLUMN_DATATYPE},
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_PARTITION_COLUMN_DATATYPE` in `physical_plan::file_format`

error: cannot find macro `lazy_static` in this scope
  --> datafusion/src/physical_plan/file_format/mod.rs:51:1
   |
51 | lazy_static! {
   | ^^^^^^^^^^^

error[E0425]: cannot find value `DEFAULT_PARTITION_COLUMN_DATATYPE` in this scope
   --> datafusion/src/physical_plan/file_format/mod.rs:108:21
    |
108 |                     DEFAULT_PARTITION_COLUMN_DATATYPE.clone(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `DEFAULT_PARTITION_COLUMN_DATATYPE` in this scope
   --> datafusion/src/physical_plan/file_format/mod.rs:267:34
    |
267 |     debug_assert_eq!(data_type, *DEFAULT_PARTITION_COLUMN_DATATYPE);
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0425, E0432.

Expected behavior
Datafusion should compile

Additional context
I suspect this came in via #1141

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions