Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip transformation of partition if partition is empty #908

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

mrchtr
Copy link
Contributor

@mrchtr mrchtr commented Mar 18, 2024

n 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.

mrchtr and others added 2 commits March 28, 2024 14:11
@mrchtr mrchtr merged commit ad7191e into main Apr 3, 2024
8 checks passed
@mrchtr mrchtr deleted the bugfix/empty-partitions branch April 3, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants