From 0eeb43ae4bc86ec465c65fe296b2b8cf0b35e66b Mon Sep 17 00:00:00 2001 From: Mikhail Cheshkov Date: Wed, 15 Jan 2025 18:36:08 +0200 Subject: [PATCH] fix(cubesql): Depend on a proper flag for grouped join part --- .../cubesql/src/compile/rewrite/rules/wrapper/join.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rust/cubesql/cubesql/src/compile/rewrite/rules/wrapper/join.rs b/rust/cubesql/cubesql/src/compile/rewrite/rules/wrapper/join.rs index 3168c82107183..8bc53d5e66bed 100644 --- a/rust/cubesql/cubesql/src/compile/rewrite/rules/wrapper/join.rs +++ b/rust/cubesql/cubesql/src/compile/rewrite/rules/wrapper/join.rs @@ -64,13 +64,12 @@ impl WrapperRules { wrapper_replacer_context( // Going to ignore this "?right_alias_to_cube", - // TODO depend on proper "ungrouped scan" flag (that is not a push-to-cube) - "WrapperReplacerContextPushToCube:false", + "?right_push_to_cube", "?in_projection", // Going to ignore this "?right_cube_members", "?right_grouped_subqueries", - "?right_ungrouped_scan", + "WrapperReplacerContextUngroupedScan:false", ), ), "CubeScanWrapperFinalized:false",