File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,3 +122,7 @@ class CommitStateUnknownException(RESTError):
122122
123123class WaitingForLockException (Exception ):
124124 """Need to wait for a lock, try again."""
125+
126+
127+ class ValidationException (Exception ):
128+ """Raised when validation fails."""
Original file line number Diff line number Diff line change 1414# KIND, either express or implied. See the License for the
1515# specific language governing permissions and limitations
1616# under the License.
17- from typing import Optional
1817
18+ from pyiceberg .exceptions import ValidationException
1919from pyiceberg .manifest import ManifestContent , ManifestFile
2020from pyiceberg .table import Table
2121from pyiceberg .table .snapshots import Operation , Snapshot , ancestors_between
2222
2323
24- class ValidationException (Exception ):
25- """Raised when validation fails."""
26-
27-
2824def validation_history (
2925 table : Table ,
3026 from_snapshot : Snapshot ,
31- to_snapshot : Optional [ Snapshot ] ,
27+ to_snapshot : Snapshot ,
3228 matching_operations : set [Operation ],
3329 manifest_content_filter : ManifestContent ,
3430) -> tuple [list [ManifestFile ], set [Snapshot ]]:
You can’t perform that action at this time.
0 commit comments