This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
new e4b0d3f26f [fix](having) Fix the `with as` clause containing having
caused a null pointer (#12007)
e4b0d3f26f is described below
commit e4b0d3f26f3dd23d2ae4aca305900e3cfb4987d2
Author: luozenglin <[email protected]>
AuthorDate: Wed Aug 24 08:48:49 2022 +0800
[fix](having) Fix the `with as` clause containing having caused a null
pointer (#12007)
---
fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
index af0f042cc5..f6fba9b9be 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
@@ -159,6 +159,8 @@ public class SelectStmt extends QueryStmt {
whereClause = (other.whereClause != null) ? other.whereClause.clone()
: null;
groupByClause = (other.groupByClause != null) ?
other.groupByClause.clone() : null;
havingClause = (other.havingClause != null) ?
other.havingClause.clone() : null;
+ havingClauseAfterAnaylzed =
+ other.havingClauseAfterAnaylzed != null ?
other.havingClauseAfterAnaylzed.clone() : null;
colLabels = Lists.newArrayList(other.colLabels);
aggInfo = (other.aggInfo != null) ? other.aggInfo.clone() : null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]