Skip to content

Commit

Permalink
scan: change ErrorKind when table dont have spanshots (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheusv authored Sep 25, 2024
1 parent ab51355 commit 4171275
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/iceberg/src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
Expand Down

0 comments on commit 4171275

Please sign in to comment.