Balazs Hevele 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)

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 
Kudu/Iceberg columns? Now that it's callable at Column-level, would it make 
sense to pull it out to the common path?


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 true, 
i.e. over doing this instead?
ret.setIsNullable(isNullable());



--
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: Wed, 29 Apr 2026 08:22:13 +0000
Gerrit-HasComments: Yes

Reply via email to