Skip to content

Commit

Permalink
Add with subquery type to generate table subquery projections (#33751)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingZC authored Nov 21, 2024
1 parent c95c2dc commit 3edd2f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ private ColumnProjection buildColumnProjection(final ColumnProjectionSegment seg

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) {
Expand Down

0 comments on commit 3edd2f7

Please sign in to comment.