Skip to content

implement stageOnly Commit #2269

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

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

Conversation

stevie9868
Copy link
Contributor

Rationale for this change

In java, snapshotProducer can create stageOnly snapshot meaning only the snapshot is created but the snapshot is not set to a ref.

This is a prerequisite to support wap.id in py-iceberg

Are these changes tested?

Yes, tests are added.

Are there any user-facing changes?

By default, it will stay with the current existing behavior.

Comment on lines 121 to +122
branch: str = MAIN_BRANCH,
stage_only: bool = False,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think API wise, this makes more sense. In the case branch is None then we don't set the ref, if it is not None then we set the ref.

Suggested change
branch: str = MAIN_BRANCH,
stage_only: bool = False,
branch: Optional[str] = MAIN_BRANCH

@kevinjqliu WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

that make sense to me. Instead of setting stage_only=True, it would be branch=None

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make sense, thanks for taking a look!

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