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 @@ -731,14 +731,10 @@ export class PreAggregations {
731731 // no connections in the joinTree between cubes from different datasources
732732 const dimsToMatch = references . rollups . length > 0 ? references . dimensions : references . fullNameDimensions ;
733733
734- const dimensionsMatch = ( dimensions , doBackAlias ) => R . all (
735- d => (
736- doBackAlias ?
737- backAlias ( dimsToMatch ) :
738- ( dimsToMatch )
739- ) . indexOf ( d ) !== - 1 ,
740- dimensions
741- ) ;
734+ const dimensionsMatch = ( dimensions , doBackAlias ) => {
735+ const target = doBackAlias ? backAlias ( dimsToMatch ) : dimsToMatch ;
736+ return dimensions . every ( d => target . includes ( d ) ) ;
737+ } ;
742738
743739 // In 'rollupJoin' / 'rollupLambda' pre-aggregations fullName members will be empty, because there are
744740 // no connections in the joinTree between cubes from different datasources
You can’t perform that action at this time.
0 commit comments