This is an automated email from the ASF dual-hosted git repository.

chengzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ff98244899 Add extract combine left select in 
extractFromSelectStatementWithoutProjection method (#32429)
6ff98244899 is described below

commit 6ff9824489987b576a41177edde43bc4e8ed0569
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Thu Aug 8 18:52:36 2024 +0800

    Add extract combine left select in 
extractFromSelectStatementWithoutProjection method (#32429)
---
 .../sql/parser/statement/core/util/ColumnExtractUtils.java               | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/util/ColumnExtractUtils.java
 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/util/ColumnExtractUtils.java
index 29daf6cc9ac..6641b8d9e0a 100644
--- 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/util/ColumnExtractUtils.java
+++ 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/util/ColumnExtractUtils.java
@@ -132,6 +132,7 @@ public final class ColumnExtractUtils {
         statement.getGroupBy().ifPresent(optional -> 
extractFromGroupBy(columnSegments, optional, containsSubQuery));
         statement.getHaving().ifPresent(optional -> 
extractFromHaving(columnSegments, optional, containsSubQuery));
         statement.getOrderBy().ifPresent(optional -> 
extractFromOrderBy(columnSegments, optional, containsSubQuery));
+        statement.getCombine().ifPresent(optional -> 
extractFromSelectStatement(columnSegments, optional.getLeft().getSelect(), 
containsSubQuery));
         statement.getCombine().ifPresent(optional -> 
extractFromSelectStatement(columnSegments, optional.getRight().getSelect(), 
containsSubQuery));
     }
     

Reply via email to