Skip to content

[ISSUE #905] report data for WAP snapshots when currentSnapshot is null - #908

Merged
rdblue merged 5 commits into
apache:masterfrom
XiaokunDing:snapshotWAP
Apr 15, 2020
Merged

rdblue merged 5 commits into
apache:masterfrom
XiaokunDing:snapshotWAP

Conversation

@XiaokunDing

Copy link
Copy Markdown
Contributor

all_data_files ,all_manifests and all_entries metadata tables report data for WAP snapshots when currentSnapshot is null.

@rdblue

rdblue commented Apr 9, 2020

Copy link
Copy Markdown
Contributor

I don't think this is a good way to fix the problem. These tables do not need to use special handling for WAP, and should not have anything that depends on WAP.

The underlying problem is that planFiles is shared between data and metadata tables, and returns no tasks if there is no current snapshot. The solution is to fix planFiles for metadata tables, not to add a special case that incorrectly reports the current snapshot.

@XiaokunDing

Copy link
Copy Markdown
Contributor Author

Thanks @rdblue , I have fixed it, would mind to take another look?

@XiaokunDing
XiaokunDing force-pushed the snapshotWAP branch 4 times, most recently from 0bc6bea to a6fae6e Compare April 10, 2020 05:16
@aokolnychyi

Copy link
Copy Markdown
Contributor

I think we will also need a test that can be added to TestIcebergSourceTablesBase. It should start with an empty table, stage a snapshot or two and verify the records returned by all_data_files and all_manifests.

@XiaokunDing

Copy link
Copy Markdown
Contributor Author

Thanks @aokolnychyi , I have fixed it, would mind to take another look?

@XiaokunDing

Copy link
Copy Markdown
Contributor Author

HI @rdblue I have fixed it, would mind to take another look?

@rdblue
rdblue merged commit 7b99b17 into apache:master Apr 15, 2020
@rdblue

rdblue commented Apr 15, 2020

Copy link
Copy Markdown
Contributor

Thanks, @XiaokunDing! I'm merging this.

@XiaokunDing

Copy link
Copy Markdown
Contributor Author

Thanks @rdblue

sunchao pushed a commit to sunchao/iceberg that referenced this pull request May 9, 2023
* Internal(Boson):Bump boson version

* trigger build
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.

4 participants