Skip to content

Commit

Permalink
refactor(cubesql): Add explicit check for ungroupedness (#8861)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcheshkov authored Oct 29, 2024
1 parent 0aec0cb commit 92f419c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rust/cubesql/cubesql/src/compile/engine/df/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,11 @@ impl CubeScanWrapperNode {
if let Some(cube_scan_node) =
node.as_any().downcast_ref::<CubeScanNode>()
{
if cube_scan_node.request.ungrouped != Some(true) {
return Err(CubeError::internal(format!(
"Expected ungrouped CubeScan node but found: {cube_scan_node:?}"
)));
}
Some(Arc::new(cube_scan_node.clone()))
} else {
return Err(CubeError::internal(format!(
Expand Down

0 comments on commit 92f419c

Please sign in to comment.