Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/25183 )
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) Reviewed-on: http://gerrit.cloudera.org:8080/25183 Reviewed-by: Zoltan Borok-Nagy <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- 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, 57 insertions(+), 6 deletions(-) Approvals: Zoltan Borok-Nagy: Looks good to me, approved Impala Public Jenkins: Verified -- 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: merged Gerrit-Change-Id: Idd7e882b1fd86f60fede0964dbcad1a55bea3691 Gerrit-Change-Number: 25183 Gerrit-PatchSet: 4 Gerrit-Owner: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
