alamb opened a new issue, #15208:
URL: https://github.com/apache/datafusion/issues/15208

   ### Describe the bug
   
   Some targets in the `datafusion` crate do not compile with default features
   
   Found while writing some tests
   - https://github.com/apache/datafusion/issues/15155
   
   ### To Reproduce
   
   ```shell
   cargo check --all-targets  --no-default-features -p datafusion
   
   ...
   error[E0433]: failed to resolve: use of undeclared crate or module `parquet`
     --> datafusion/core/benches/sql_query_with_io.rs:39:5
      |
   39 | use parquet::arrow::ArrowWriter;
      |     ^^^^^^^ use of undeclared crate or module `parquet`
   
   error[E0432]: unresolved import 
`datafusion::datasource::file_format::parquet`
     --> datafusion/core/benches/sql_query_with_io.rs:26:22
      |
   26 |         file_format::parquet::ParquetFormat,
      |                      ^^^^^^^ could not find `parquet` in `file_format`
      |
   note: found an item that was configured out
     --> 
/Users/andrewlamb/Software/datafusion/datafusion/core/src/datasource/file_format/mod.rs:29:9
      |
   29 | pub mod parquet;
      |         ^^^^^^^
   note: the item is gated behind the `parquet` feature
     --> 
/Users/andrewlamb/Software/datafusion/datafusion/core/src/datasource/file_format/mod.rs:28:7
      |
   28 | #[cfg(feature = "parquet")]
      |       ^^^^^^^^^^^^^^^^^^^
   
   error[E0433]: failed to resolve: use of undeclared crate or module 
`datafusion_functions_nested`
     --> 
datafusion/core/tests/user_defined/user_defined_scalar_functions.rs:45:5
      |
   45 | use datafusion_functions_nested::range::range_udf;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module 
`datafusion_functions_nested`
      |
   help: there is a crate or module with a similar name
      |
   45 | use datafusion_functions_table::range::range_udf;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~
   
   ```
   
   
   
   ### Expected behavior
   
   I expect this command to succeed:
   
   ```shell
   cargo check --all-targets  --no-default-features -p datafusion
   ```
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to