github-actions[bot] commented on code in PR #62558:
URL: https://github.com/apache/doris/pull/62558#discussion_r3092448415


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/EliminateNotNull.java:
##########
@@ -116,6 +138,11 @@ private List<Expression> 
removeGeneratedNotNull(Collection<Expression> exprs, Ca
                 .build();
     }
 
+    private static boolean isVariableLengthType(DataType type) {

Review Comment:
   `VARBINARY` is also variable-length data, but this helper does not include 
`DataType.isVarBinaryType()`. As a result, generated `IS NOT NULL` on nullable 
VARBINARY columns will still be treated as fixed-length and removed, so the 
optimization added in this PR is incomplete for another variable-length type 
family. The new test only covers `INT` and `STRING`, so this gap is currently 
untested.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to