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 {
518
518
// Safeguard against infinite loop in case of cyclic joins somehow managed to slip through
519
519
let cnt = 0 ;
520
520
521
- while ( newJoin ?. joins . length > 0 && ! isJoinTreesEqual ( prevJoin , newJoin ) && cnt < 10000 ) {
521
+ while ( newJoin ?. joins . length > 0 && cnt < 10000 ) {
522
522
prevJoin = newJoin ;
523
523
joinMembersJoinHints = this . collectJoinHintsFromMembers ( this . joinMembersFromJoin ( newJoin ) ) ;
524
524
newJoin = this . joinGraph . buildJoin ( constructJH ( ) ) ;
525
525
526
+ if ( isJoinTreesEqual ( prevJoin , newJoin ) ) {
527
+ break ;
528
+ }
529
+
526
530
const [ isOrdered , msg ] = isOrderPreserved ( [ allMembersHintsFlattened [ 0 ] , ...joinMembersJoinHints ] ) ;
527
531
528
532
if ( ! isOrdered ) {
You can’t perform that action at this time.
0 commit comments