Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/24141 )
Change subject: IMPALA-13273: Disallow writing NULL values in non-nullable columns ...................................................................... Patch Set 5: (2 comments) Thanks for the comments! http://gerrit.cloudera.org:8080/#/c/24141/5/fe/src/main/java/org/apache/impala/analysis/ToSqlUtils.java File fe/src/main/java/org/apache/impala/analysis/ToSqlUtils.java: http://gerrit.cloudera.org:8080/#/c/24141/5/fe/src/main/java/org/apache/impala/analysis/ToSqlUtils.java@1077 PS5, Line 1077: sb.append(col.isNullable() ? " NULL" : " NOT NULL"); > Not related to your fix, but is there a reason this is only appended for Ku Currently we don't allow "NULL" / "NOT NULL" on columns of all table types. E.g. the following raises an error: create table legacy_null(i int null); AnalysisException: Unsupported column options for file format 'TEXT': 'i INT NULL' http://gerrit.cloudera.org:8080/#/c/24141/5/fe/src/main/java/org/apache/impala/catalog/Column.java File fe/src/main/java/org/apache/impala/catalog/Column.java: http://gerrit.cloudera.org:8080/#/c/24141/5/fe/src/main/java/org/apache/impala/catalog/Column.java@160 PS5, Line 160: if (!isNullable()) ret.setIsNullable(false); > Is there any technical reason for relying on the default (not set) being tr This way we save a few bytes per column in the serialized format. -- To view, visit http://gerrit.cloudera.org:8080/24141 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I1189da3094beee615a5d4600576febde4be8473d Gerrit-Change-Number: 24141 Gerrit-PatchSet: 5 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Balazs Hevele <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Surya Hebbar <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Thu, 30 Apr 2026 14:19:34 +0000 Gerrit-HasComments: Yes
