trino
Recategorize NPE in StatementAnalyzer
#25775
Open

Recategorize NPE in StatementAnalyzer #25775

artem-sokolov
artem-sokolov13 days ago

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

artem-sokolov Recategorize NPE in StatementAnalyzer
7a98c550
cla-bot cla-bot added cla-signed
wendigo wendigo requested a review from ebyhr ebyhr 11 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone