-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip transformation of partition if partition is empty (#908)
In the case that a `PandasTransformComponent` receives an empty dask partition, the execution fails. There could be several reasons why a partition is empty, and it may depend on a custom implementation. We should catch this case and not halt the component's execution. This PR adds a check to see if the `wrapped_transform` receives an empty partition. If it does, we skip the execution and return the received dataframe. --------- Co-authored-by: Robbe Sneyders <[email protected]>
- Loading branch information
1 parent
2464ef0
commit ad7191e
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters