Skip to content

refactor(view,udf)!: make NewMetadataBuilder infallible - #2316

Merged
zeroshade merged 6 commits into
apache:mainfrom
fallintoplace:refactor/view-udf-infallible-metadata-builders-upstream-20261024
Oct 26, 2026
Merged

zeroshade merged 6 commits into
apache:mainfrom
fallintoplace:refactor/view-udf-infallible-metadata-builders-upstream-20261024

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

  • Make both NewMetadataBuilder functions return a builder directly.

Why

  • Neither constructor returns an error.

Implementation

  • Remove the unused error result and update callers.

Refs #2062.

@fallintoplace
fallintoplace marked this pull request as ready for review October 24, 2026 11:34
Signed-off-by: Minh Vu <vuhoangminh97@gmail.com>
@fallintoplace
fallintoplace force-pushed the refactor/view-udf-infallible-metadata-builders-upstream-20261024 branch from 431046a to 7770288 Compare October 25, 2026 11:05
fallintoplace and others added 5 commits October 25, 2026 12:32
…rs-upstream-20261024

Restore the compatibility note from ecbb345 dropped by the release-notes sync.
…rs-upstream-20261024

Take main's releases.md; the compatibility note for this change lands in a follow-up release-notes PR so the pre-v1 renames can merge in parallel.

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Neither constructor could fail, so dropping the error result is right, and the dead if err != nil branches in view/metadata.go and view/view.go go with it. I pushed a merge of main (8d0dbf9); go vet ./... (including -tags integration) and the view, udf and catalog tests pass. The compatibility note for this change (dropped by the "sync release notes with main" commit) will land in a single follow-up release-notes PR covering this batch of pre-v1 renames, so these can merge in parallel without releases.md conflicts. LGTM.

@zeroshade
zeroshade merged commit 34e7809 into apache:main Oct 26, 2026
16 checks passed
zeroshade added a commit to fallintoplace/iceberg-go that referenced this pull request Oct 26, 2026
Keep both releases.md notes, and use the infallible udf.NewMetadataBuilder from apache#2316 in the new validation test.
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