BiteTheDDDDt commented on code in PR #20509:
URL: https://github.com/apache/doris/pull/20509#discussion_r1220760313
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/Expr.java:
##########
@@ -986,14 +986,6 @@ public String toColumnLabel() {
// Convert this expr, including all children, to its Thrift representation.
public TExpr treeToThrift() {
- if (type.isNull()) {
- // Hack to ensure BE never sees TYPE_NULL. If an expr makes it
this far without
- // being cast to a non-NULL type, the type doesn't matter and we
can cast it
- // arbitrarily.
- Preconditions.checkState(this instanceof NullLiteral || this
instanceof SlotRef
- || this instanceof VariableExpr);
- return NullLiteral.create(ScalarType.BOOLEAN).treeToThrift();
- }
Review Comment:
>
The current backend will automatically treat null_type as bool
--
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]