You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2018/11/06 09:35:39 UTC
[GitHub] chenhao7253886 commented on a change in pull request #283: Fix
truncation error in CastExpr
chenhao7253886 commented on a change in pull request #283: Fix truncation error in CastExpr
URL: https://github.com/apache/incubator-doris/pull/283#discussion_r231052560
##########
File path: fe/src/main/java/org/apache/doris/analysis/CastExpr.java
##########
@@ -219,7 +195,9 @@ private void analyze() throws AnalysisException {
@Override
public void analyzeImpl(Analyzer analyzer) throws AnalysisException {
- type = targetType;
+ Preconditions.checkState(!isImplicit);
+ targetTypeDef.analyze(analyzer);
Review comment:
Implicit CastExpr can't call analyze() outside , so targetTypeDef will not throw NullPointerException.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org