Alex1888 commented on code in PR #45582:
URL: https://github.com/apache/doris/pull/45582#discussion_r1889698307
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java:
##########
@@ -600,7 +590,21 @@ public String toSql() {
}
if (defaultValue.isSet) {
- sb.append(defaultValue.toSql()).append(" ");
+ if (defaultValue.value != null) {
+ if (typeDef.getType().getPrimitiveType() !=
PrimitiveType.BITMAP
Review Comment:
nested if is not a good pattern here. try to use
```
if (defaultValue.value = null){
}
eles if(typeDef.getType().getPrimitiveType() == PrimitiveType.BITMAP) {
}
```
--
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]