File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ pub enum ErrorKind {
44
44
///
45
45
/// This error is returned when given iceberg feature is not supported.
46
46
FeatureUnsupported ,
47
+ /// Iceberg table don't have any snapshot to scan
48
+ ///
49
+ /// This error is returned when a table scan is attempt to executed on table
50
+ /// without snapshots.
51
+ TableWithoutSnapshot ,
47
52
}
48
53
49
54
impl ErrorKind {
@@ -59,6 +64,7 @@ impl From<ErrorKind> for &'static str {
59
64
ErrorKind :: Unexpected => "Unexpected" ,
60
65
ErrorKind :: DataInvalid => "DataInvalid" ,
61
66
ErrorKind :: FeatureUnsupported => "FeatureUnsupported" ,
67
+ ErrorKind :: TableWithoutSnapshot => "TableWithoutSnapshot" ,
62
68
}
63
69
}
64
70
}
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ impl<'a> TableScanBuilder<'a> {
177
177
. current_snapshot ( )
178
178
. ok_or_else ( || {
179
179
Error :: new (
180
- ErrorKind :: FeatureUnsupported ,
180
+ ErrorKind :: TableWithoutSnapshot ,
181
181
"Can't scan table without snapshots" ,
182
182
)
183
183
} ) ?
You can’t perform that action at this time.
0 commit comments