Skip to content

Commit

Permalink
fix: replace NotImplementedError with DatasetError in DeltaSharingDat…
Browse files Browse the repository at this point in the history
…aset

Signed-off-by: Hugo Carvalho <[email protected]>
  • Loading branch information
hugodscarvalho committed Sep 30, 2024
1 parent 38548c1 commit 9fc5ca1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def _save(self, data: pd.DataFrame) -> None:
data (pd.DataFrame): Data to save.
Raises:
NotImplementedError: Saving to Delta Sharing shared tables is not supported.
DatasetError: Saving to Delta Sharing shared tables is not supported.
"""
raise NotImplementedError("Saving to Delta Sharing shared tables is not supported.")
raise DatasetError("Saving to Delta Sharing shared tables is not supported.")

def preview(self, nrows: int = 5) -> TablePreview:
"""Generate a preview of the dataset with a specified number of rows.
Expand Down

0 comments on commit 9fc5ca1

Please sign in to comment.