Hello Zoltan Borok-Nagy, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/25183
to look at the new patch set (#2).
Change subject: IMPALA-15615: Create required fields for NOT NULL columns in
Iceberg ADD COLUMN
......................................................................
IMPALA-15615: Create required fields for NOT NULL columns in Iceberg ADD COLUMN
On Iceberg V3 tables, ALTER TABLE ... ADD COLUMN(S) with NOT NULL and
DEFAULT added the column as optional even though CREATE TABLE with the
same definition produced a required field. DESCRIBE showed the column as
nullable and INSERT could store NULL.
addColumns() always used UpdateSchema.addColumn() and ignored
TColumn.is_nullable. When is_nullable is false, it now calls
addRequiredColumn() instead. Analysis already requires a DEFAULT for
NOT NULL adds on V3, so Iceberg accepts the change without
allowIncompatibleChanges().
Testing:
- e2e coverage in iceberg-v3-default-values.test for ADD COLUMN and
ADD COLUMNS with NOT NULL DEFAULT: nullability in DESCRIBE, defaults
on read and write, and rejection of explicit NULL on INSERT.
Change-Id: Idd7e882b1fd86f60fede0964dbcad1a55bea3691
Assisted-by: Claude Sonnet 5.5 (Cursor)
---
M fe/src/main/java/org/apache/impala/service/IcebergCatalogOpExecutor.java
M
testdata/workloads/functional-query/queries/QueryTest/iceberg-v3-default-values.test
2 files changed, 63 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/83/25183/2
--
To view, visit http://gerrit.cloudera.org:8080/25183
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Idd7e882b1fd86f60fede0964dbcad1a55bea3691
Gerrit-Change-Number: 25183
Gerrit-PatchSet: 2
Gerrit-Owner: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>