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
Description
Recategorize
NullPointerException
that gets thrown when there's a mismatch between columns and insert layout fromMetadata
duringStatementAnalyzer#createMergeAnalysis
.Instead, it now throws a
TrinoException
with a corresponding message, e.g.: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