danking commented on issue #1145:
URL: https://github.com/apache/iceberg-rust/issues/1145#issuecomment-2776691568
AFAICT, this still fails on `fcc88920f52dbae53257757e2d33825bea4b51a9`.
I've modified my test code a bit since then, but it still hits the same
error in scan/mod.rs. I don't think `current-snapshot-id` is required in the
table metadata response. `mod.rs:222` appears to assume its existence. Let me
see if I can create a PR.
```
---- test::test_using_externally_started_server stdout ----
thread 'test::test_using_externally_started_server' panicked at
crates/spiral-iceberg-catalog/src/lib.rs:84:43:
called `Result::unwrap()` on an `Err` value: Unexpected => Can't scan table
without snapshots
Backtrace:
0: std::backtrace_rs::backtrace::libunwind::trace
at
/rustc/a0d98ff0e5b6e1f2c63fd26f68484792621b235c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
1: std::backtrace_rs::backtrace::trace_unsynchronized
at
/rustc/a0d98ff0e5b6e1f2c63fd26f68484792621b235c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: std::backtrace::Backtrace::create
at
/rustc/a0d98ff0e5b6e1f2c63fd26f68484792621b235c/library/std/src/backtrace.rs:331:13
3: iceberg::error::Error::new
at
/Users/danielking/.cargo/git/checkouts/iceberg-rust-d49e83c40ef4cf40/fcc8892/crates/iceberg/src/error.rs:206:24
4: iceberg::scan::TableScanBuilder::build::{{closure}}
at
/Users/danielking/.cargo/git/checkouts/iceberg-rust-d49e83c40ef4cf40/fcc8892/crates/iceberg/src/scan/mod.rs:222:21
5: core::option::Option<T>::ok_or_else
at
/Users/danielking/.rustup/toolchains/nightly-2024-11-01-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1276:25
6: iceberg::scan::TableScanBuilder::build
at
/Users/danielking/.cargo/git/checkouts/iceberg-rust-d49e83c40ef4cf40/fcc8892/crates/iceberg/src/scan/mod.rs:217:21
7:
spiral_iceberg_catalog::test::test_using_externally_started_server::{{closure}}
at ./src/lib.rs:84:22
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]