File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -733,14 +733,10 @@ export class PreAggregations {
733733 // no connections in the joinTree between cubes from different datasources
734734 const dimsToMatch = references . rollups . length > 0 ? references . dimensions : references . fullNameDimensions ;
735735
736- const dimensionsMatch = ( dimensions , doBackAlias ) => R . all (
737- d => (
738- doBackAlias ?
739- backAlias ( dimsToMatch ) :
740- ( dimsToMatch )
741- ) . indexOf ( d ) !== - 1 ,
742- dimensions
743- ) ;
736+ const dimensionsMatch = ( dimensions , doBackAlias ) => {
737+ const target = doBackAlias ? backAlias ( dimsToMatch ) : dimsToMatch ;
738+ return dimensions . every ( d => target . includes ( d ) ) ;
739+ } ;
744740
745741 // In 'rollupJoin' / 'rollupLambda' pre-aggregations fullName members will be empty, because there are
746742 // no connections in the joinTree between cubes from different datasources
You can’t perform that action at this time.
0 commit comments