This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new 4171275a scan: change ErrorKind when table dont have spanshots (#608)
4171275a is described below
commit 4171275a23aa3f3c9e8f8c24d433e4a0eeadc392
Author: Matheus Alcantara <[email protected]>
AuthorDate: Wed Sep 25 08:28:42 2024 -0300
scan: change ErrorKind when table dont have spanshots (#608)
---
crates/iceberg/src/scan.rs | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/crates/iceberg/src/scan.rs b/crates/iceberg/src/scan.rs
index 0d8a4bf0..1c336116 100644
--- a/crates/iceberg/src/scan.rs
+++ b/crates/iceberg/src/scan.rs
@@ -197,10 +197,7 @@ impl<'a> TableScanBuilder<'a> {
.metadata()
.current_snapshot()
.ok_or_else(|| {
- Error::new(
- ErrorKind::FeatureUnsupported,
- "Can't scan table without snapshots",
- )
+ Error::new(ErrorKind::Unexpected, "Can't scan table
without snapshots")
})?
.clone(),
};