You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2024/11/21 05:44:25 UTC
(shardingsphere) branch master updated: Add with subquery type to generate table subquery projections (#33751)
This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 3edd2f73781 Add with subquery type to generate table subquery projections (#33751)
3edd2f73781 is described below
commit 3edd2f737813b9f6fd2007acc9dd885a26ce2b80
Author: ZhangCheng <ch...@apache.org>
AuthorDate: Thu Nov 21 13:44:18 2024 +0800
Add with subquery type to generate table subquery projections (#33751)
---
.../token/generator/projection/EncryptProjectionTokenGenerator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/projection/EncryptProjectionTokenGenerator.java b/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/projection/EncryptProjectionTokenGenerator.java
index f6fb343b467..f1b23f9ed65 100644
--- a/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/projection/EncryptProjectionTokenGenerator.java
+++ b/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/projection/EncryptProjectionTokenGenerator.java
@@ -204,10 +204,10 @@ public final class EncryptProjectionTokenGenerator {
private Collection<Projection> generateProjections(final EncryptColumn encryptColumn, final ColumnProjection columnProjection,
final SubqueryType subqueryType, final boolean newAddedColumn) {
- if (null == subqueryType || SubqueryType.PROJECTION == subqueryType || SubqueryType.WITH == subqueryType) {
+ if (null == subqueryType || SubqueryType.PROJECTION == subqueryType) {
return Collections.singleton(generateProjection(encryptColumn, columnProjection));
}
- if (SubqueryType.TABLE == subqueryType || SubqueryType.JOIN == subqueryType) {
+ if (SubqueryType.TABLE == subqueryType || SubqueryType.JOIN == subqueryType || SubqueryType.WITH == subqueryType) {
return generateProjectionsInTableSegmentSubquery(encryptColumn, columnProjection, newAddedColumn);
}
if (SubqueryType.PREDICATE == subqueryType) {