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

Fix divide by zero error when pyarrow table size comes out 0 #368

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

raghumdani
Copy link
Collaborator

Summary

This commit ensures the pyarrow table size 0 is handled appropriately.

Rationale

The size of the arrow table could be zero even if the file itself isn't 0.

Changes

N/A

Impact

Existing UTs pass. No impact,.

Testing

Added test cases to repro 0 arrow table size.

Regression Risk

None

Checklist

  • Unit tests covering the changes have been added

    • [x ] If this is a bugfix, regression tests have been added
  • E2E testing has been performed

Additional Notes

Any additional information or context relevant to this PR.

Copy link
Collaborator

@pfaraone pfaraone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@raghumdani raghumdani merged commit 1655368 into main Oct 25, 2024
3 checks passed
@raghumdani raghumdani deleted the bg-fix branch October 25, 2024 23:41
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.

2 participants