cross_join_grouping_sets

Function cross_join_grouping_sets 

Source
fn cross_join_grouping_sets<T: Clone>(
    left: &[Vec<T>],
    right: &[Vec<T>],
) -> Result<Vec<Vec<T>>>
Expand description

Compute the cross product of two grouping_sets

§Example

[(A, B), (C, D)], [(E), (F)] -> [(A, B, E), (A, B, F), (C, D, E), (C, D, F)]

§Error

  • DataFusionError: The number of group_expression in grouping_set exceeds the maximum limit
  • DataFusionError: The number of grouping_set in grouping_sets exceeds the maximum limit