Skip to content

Commit 069f1a1

Browse files
committed
removed too optimistic optimizations, which lead to wrong result
1 parent 0b1c9f5 commit 069f1a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/java/org/polypheny/db/plan/AlgOptUtil.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,14 @@ public static Exists createExistsPlan( AlgNode seekAlg, SubQueryType subQueryTyp
462462
return new Exists( seekAlg, false, true );
463463
}
464464

465-
switch ( logic ) {
465+
/*switch ( logic ) { // this leads to too optimistic optimizations if not null and result empty
466466
case TRUE_FALSE_UNKNOWN:
467467
case UNKNOWN_AS_TRUE:
468468
if ( notIn && !containsNullableFields( seekAlg ) ) {
469469
logic = Logic.TRUE_FALSE;
470470
}
471-
}
471+
}*/
472+
472473
AlgNode ret = seekAlg;
473474
final AlgCluster cluster = seekAlg.getCluster();
474475
final RexBuilder rexBuilder = cluster.getRexBuilder();

0 commit comments

Comments
 (0)