You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "dentiny (via GitHub)" <gi...@apache.org> on 2025/05/09 01:17:09 UTC
[I] Compilation failure with only storage-fs feature used [iceberg-rust]
dentiny opened a new issue, #1303:
URL: https://github.com/apache/iceberg-rust/issues/1303
### Apache Iceberg Rust version
0.4.0 (latest version)
### Describe the bug
I'm using main branch, and suffers compilation failure when only storage-fs feature included.
### To Reproduce
Reproduce code and repo: https://github.com/dentiny/iceberg-rust-namespace-exists
The above repo attempts to include only `storage-fs` feature, and regular build command `cargo build` fails with compilation failure:
```sh
error[E0282]: type annotations needed
--> /usr/local/cargo/git/checkouts/iceberg-rust-1cfaaa0dd97c960f/7a5ad1f/crates/iceberg/src/io/storage.rs:115:21
|
115 | Ok((op, stripped))
| ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
help: consider specifying the generic arguments
|
115 | Ok::<(Operator, &str), E>((op, stripped))
| +++++++++++++++++++++++
```
### Expected behavior
Compilation and link pass with no issues.
### Willingness to contribute
None
--
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Compilation failure with only storage-fs feature used [iceberg-rust]
Posted by "dentiny (via GitHub)" <gi...@apache.org>.
dentiny commented on issue #1303:
URL: https://github.com/apache/iceberg-rust/issues/1303#issuecomment-2864874589
A followup question: what's the idiomatic way to test different combination of features in CI, to prevent it happen?
Local `cargo test` and `cargo build` only build for default features, which is purpose for "features".
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Compilation failure with only storage-fs feature used [iceberg-rust]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #1303:
URL: https://github.com/apache/iceberg-rust/issues/1303#issuecomment-2868619402
Interesting. I didn’t expect that we would need a type hint here. Let me take a look.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Compilation failure with only storage-fs feature used [iceberg-rust]
Posted by "dentiny (via GitHub)" <gi...@apache.org>.
dentiny commented on issue #1303:
URL: https://github.com/apache/iceberg-rust/issues/1303#issuecomment-2869495842
> Interesting. I didn’t expect that we would need a type hint here. Let me take a look.
I also find it weird, returning the explicit error type is the easiest fix I could think of.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Compilation failure with only storage-fs feature used [iceberg-rust]
Posted by "sdd (via GitHub)" <gi...@apache.org>.
sdd closed issue #1303: Compilation failure with only storage-fs feature used
URL: https://github.com/apache/iceberg-rust/issues/1303
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org