Skip to content
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

Build error in downstream crate odbc2parquet after updating to parquet 6.0.0 -- unresolved import arrow::ipc #840

Closed
pacman82 opened this issue Oct 18, 2021 · 2 comments · Fixed by #837
Labels

Comments

@pacman82
Copy link

Describe the bug
Build error in downstream crate odbc2parquet after updating to parquet 6.0.0.
See https://github.com/pacman82/odbc2parquet/pull/108/checks?check_run_id=3929304124

To Reproduce
Steps to reproduce the behavior:

cargo new --bin test
cd test
cargo add parquet
cargo build

Expected behavior
Ability to include parquet as a dependency without breaking the build.

Additional context
Could workaround the issue, by excluding the arrow feature from the build. Thought I give a ping still.

@pacman82 pacman82 added the bug label Oct 18, 2021
@houqp
Copy link
Member

houqp commented Oct 18, 2021

This should get fixed with #837

@alamb alamb changed the title Build error in downstream crate odbc2parquet after updating to parquet 6.0.0 Build error in downstream crate odbc2parquet after updating to parquet 6.0.0 -- unresolved import arrow::ipc Oct 18, 2021
@alamb
Copy link
Contributor

alamb commented Oct 18, 2021

For the record the error is:

error[E0433]: failed to resolve: could not find `ipc` in `arrow`
   --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\parquet-6.0.0\src\arrow\schema.rs:189:26
    |
189 |             match arrow::ipc::root_as_message(slice) {
    |                          ^^^ could not find `ipc` in `arrow`

Sorry @pacman82 -- the workaround as you have discovered in pacman82/odbc2parquet@bbc6036 is to disable the optional arrow dependency if you don't need it

Another workaround, if anyone else needs the optional arrow feature of the parquet crate, is to add something like the following to your Cargo.toml file

arrow = { version = "6.0.0" , features = ["ipc"] }

(yes add the arrow crate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants