Skip to content

Commit cdbf178

Browse files
committed
feat(cubesql): Allow non-push_to_cube WrappedSelect in grouped subquery position in join
1 parent 52c0bb7 commit cdbf178

File tree

1 file changed

+8
-0
lines changed
  • rust/cubesql/cubesql/src/compile/engine/df

1 file changed

+8
-0
lines changed

rust/cubesql/cubesql/src/compile/engine/df/wrapper.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,14 @@ impl CubeScanWrapperNode {
994994
"Unsupported ungrouped CubeScan as join subquery: {join_cube_scan:?}"
995995
)));
996996
}
997+
} else if let Some(wrapped_select) =
998+
node.as_any().downcast_ref::<WrappedSelectNode>()
999+
{
1000+
if wrapped_select.push_to_cube {
1001+
return Err(CubeError::internal(format!(
1002+
"Unsupported push_to_cube WrappedSelect as join subquery: {wrapped_select:?}"
1003+
)));
1004+
}
9971005
} else {
9981006
// TODO support more grouped cases here
9991007
return Err(CubeError::internal(format!(

0 commit comments

Comments
 (0)