Skip to content

Commit 4171275

Browse files
authored
scan: change ErrorKind when table dont have spanshots (apache#608)
1 parent ab51355 commit 4171275

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/iceberg/src/scan.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ impl<'a> TableScanBuilder<'a> {
197197
.metadata()
198198
.current_snapshot()
199199
.ok_or_else(|| {
200-
Error::new(
201-
ErrorKind::FeatureUnsupported,
202-
"Can't scan table without snapshots",
203-
)
200+
Error::new(ErrorKind::Unexpected, "Can't scan table without snapshots")
204201
})?
205202
.clone(),
206203
};

0 commit comments

Comments
 (0)