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 Iceberg TableChangesSplitSource closes before fully processed #24709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jinyangli34
Copy link
Contributor

Description

The bug in isFinished() could cause table_changes return partial data.

Additional context and related issues

See unit test

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jan 15, 2025
@github-actions github-actions bot added the iceberg Iceberg connector label Jan 15, 2025
@jinyangli34 jinyangli34 force-pushed the jinyang-fix_table_changes branch from c7aa1ab to d408a3f Compare January 15, 2025 17:48
}

@Test
public void testTableChangesWithSmallRowGroup()
Copy link
Member

Choose a reason for hiding this comment

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

remove public

import static java.lang.String.format;
import static java.time.ZoneOffset.UTC;

public class TestSmallScheduleSplitBatch
Copy link
Member

Choose a reason for hiding this comment

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

public -> final

Comment on lines +61 to +63
INSERT INTO %s
SELECT i, nationkey, name FROM nation
CROSS JOIN UNNEST (sequence(1, %s)) a(i)""".formatted(table.getName(), copies), 25L * copies);
Copy link
Member

Choose a reason for hiding this comment

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

If you're trying to get files with multiple row groups, can you do this in a simpler way by selecting from a larger table like lineitem or customer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

2 participants