Skip to content

Recategorize NPE in StatementAnalyzer #25775

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: master
Choose a base branch
from

Conversation

artem-sokolov
Copy link

Description

Recategorize NullPointerException that gets thrown when there's a mismatch between columns and insert layout from Metadata during StatementAnalyzer#createMergeAnalysis.

Instead, it now throws a TrinoException with a corresponding message, e.g.:

Missing field index for column: 'year', available columns: ('nationkey', 'regionkey', 'name', 'comment')

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text

@cla-bot cla-bot bot added the cla-signed label May 12, 2025
@wendigo wendigo requested a review from ebyhr May 14, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant