From 4171275a23aa3f3c9e8f8c24d433e4a0eeadc392 Mon Sep 17 00:00:00 2001 From: Matheus Alcantara Date: Wed, 25 Sep 2024 08:28:42 -0300 Subject: [PATCH] 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 0d8a4bf0d..1c3361163 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(), };