File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -518,11 +518,15 @@ export class BaseQuery {
518518 // Safeguard against infinite loop in case of cyclic joins somehow managed to slip through
519519 let cnt = 0 ;
520520
521- while ( newJoin ?. joins . length > 0 && ! isJoinTreesEqual ( prevJoin , newJoin ) && cnt < 10000 ) {
521+ while ( newJoin ?. joins . length > 0 && cnt < 10000 ) {
522522 prevJoin = newJoin ;
523523 joinMembersJoinHints = this . collectJoinHintsFromMembers ( this . joinMembersFromJoin ( newJoin ) ) ;
524524 newJoin = this . joinGraph . buildJoin ( constructJH ( ) ) ;
525525
526+ if ( isJoinTreesEqual ( prevJoin , newJoin ) ) {
527+ break ;
528+ }
529+
526530 const [ isOrdered , msg ] = isOrderPreserved ( [ allMembersHintsFlattened [ 0 ] , ...joinMembersJoinHints ] ) ;
527531
528532 if ( ! isOrdered ) {
You can’t perform that action at this time.
0 commit comments