From 515c4b15ff7156845b6daca965fc5527ef346997 Mon Sep 17 00:00:00 2001 From: Matheus Alcantara Date: Wed, 25 Sep 2024 08:21:37 -0300 Subject: [PATCH] scan: change ErrorKind when table dont have spanshots --- 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 0d8a4bf0d1..1c3361163d 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(), };