[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:
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user