Skip to content

Core: Reference ContentScanTask::length in RewriteGroupBase - #18772

Open
slachiewicz wants to merge 1 commit into
apache:mainfrom
slachiewicz:core-rewrite-group-method-reference
Open

slachiewicz wants to merge 1 commit into
apache:mainfrom
slachiewicz:core-rewrite-group-method-reference

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

RewriteGroupBase.inputFilesSizeInBytes uses T::length, a method reference qualified by a type
parameter. Error Prone 2.47 and later report it as TypeParameterQualifier (google/error-prone#5766),
which blocks moving the build to a newer Error Prone. ContentScanTask::length, the bound of T,
is the same call.

Test plan: :iceberg-core compiles with Error Prone; checkstyle, spotless and revapi pass;
TestBinPackRewriteFilePlanner (27), TestBinPackRewritePositionDeletePlanner (13) and
TestSizeBasedFileRewritePlanner (3) pass on JDK 21.

@github-actions github-actions Bot added the core label Nov 3, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 3, 2026 16:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant