Skip to content

API: Convert statement switches to arrow switches - #17534

Open
uros-b wants to merge 1 commit into
apache:mainfrom
uros-b:api-convert-statement-switch-to-arrow-switch
Open

API: Convert statement switches to arrow switches#17534
uros-b wants to merge 1 commit into
apache:mainfrom
uros-b:api-convert-statement-switch-to-arrow-switch

Conversation

@uros-b

@uros-b uros-b commented Aug 5, 2026

Copy link
Copy Markdown
Member

Converts the statement-form switch blocks in iceberg-api to expression form, clearing the 89 StatementSwitchToExpressionSwitch ErrorProne warnings the module emits and removing the risk of accidental fall-through in the converted code.

Converts the statement-form switch blocks in iceberg-api to expression
form, clearing the 89 StatementSwitchToExpressionSwitch ErrorProne
warnings the module emits and removing the risk of accidental
fall-through in the converted code.
@github-actions github-actions Bot added the API label Aug 5, 2026

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I first spotted this in api/src/main/java/org/apache/iceberg/types/TypeUtil.java, but after a full API module sweep, it seems there are many occurrences... Perhaps this can be split up into a few PRs instead of doing all at once; or if it's too invasive, we can drop the changes altogether - WDYT @szehon-ho?

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