Skip to content

Conversation

@brishi19791
Copy link

@brishi19791 brishi19791 commented Nov 4, 2025

Addresses #757
This PR introduce null-checks and fallback logic throughout the conversion in the IcebergConversionSource class to handle empty tables gracefully without data.

Brief change log

IcebergConversionSource.java: Added a conditional for computing the latest commit time when the snapshot is null.
IcebergConversionSource.java: Inserted logic to return a default InternalSnapshot (version "0" with no data files) if the current snapshot is missing.
IcebergConversionSource.java: Updated the getTable method to use a fallback schema when provided snapshot is null.

Verify this pull request

  • Added UTs for this change in TestIcebergConversionSource

@ashvina ashvina self-requested a review November 4, 2025 20:51
Copy link
Contributor

@ashvina ashvina left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Thanks for the fix!
Could you please link this PR to a GitHub issue that describes the problem before the fix? This will help with traceability and context for future reference.

@brishi19791 brishi19791 marked this pull request as ready for review November 4, 2025 20:59
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