[Fix](Nereids) fix test leading suite and add tpch shape checking base on leading (#25842)

- fix test leading suite caused by sessionvariable setting error
- add tpch shape checking base on leading
This commit is contained in:
LiBinfeng
2023-10-25 14:10:14 +08:00
committed by GitHub
parent 235ae9ded4
commit 3b9ae91910
38 changed files with 1661 additions and 27 deletions

View File

@ -484,7 +484,7 @@ public class LeadingHint extends Hint {
this.setErrorMessage("duplicated table");
return totalBitmap;
}
if (getTablelist().size() != tables.size()) {
if (tables != null && getTablelist().size() != tables.size()) {
this.setStatus(HintStatus.SYNTAX_ERROR);
this.setErrorMessage("tables should be same as join tables");
return totalBitmap;

View File

@ -2676,7 +2676,7 @@ public class SessionVariable implements Serializable, Writable {
return;
}
setIsSingleSetVar(true);
VariableMgr.setVar(this, new SetVar(SessionVariable.DISABLE_JOIN_REORDER, new StringLiteral("false")));
VariableMgr.setVar(this, new SetVar(SessionVariable.DISABLE_JOIN_REORDER, new StringLiteral("true")));
}
// return number of variables by given variable annotation