[test](leading) add leading tpc-ds regression test cases (#31681)

Co-authored-by: libinfeng <libinfeng@selectdb.com>
This commit is contained in:
LiBinfeng
2024-03-05 17:04:09 +08:00
committed by yiguolei
parent f2bece23d8
commit 97640ee0e8
16 changed files with 2176 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class CollectJoinConstraint implements RewriteRuleFactory {
private void collectJoinConstraintList(LeadingHint leading, Long leftHand, Long rightHand, LogicalJoin join,
Long filterTableBitMap, Long nonNullableSlotBitMap) {
Long totalTables = LongBitmap.or(leftHand, rightHand);
if (join.getJoinType().isInnerJoin()) {
if (join.getJoinType().isInnerOrCrossJoin()) {
leading.setInnerJoinBitmap(LongBitmap.or(leading.getInnerJoinBitmap(), totalTables));
return;
}