mirror of
https://github.com/actiontech/dble.git
synced 2026-02-14 01:29:01 -06:00
fix
This commit is contained in:
@@ -83,14 +83,19 @@ public class HintPlanParse {
|
||||
}
|
||||
|
||||
if (StringUtil.equals(operator, node.getData())) {
|
||||
if (Objects.nonNull(preNode) && preNode.isTable() && !completeNode(preNode)) {
|
||||
throw new ConfigException("cannot contain continuous | or & symbols");
|
||||
if (right && node.isTable() && completeNode(node)) {
|
||||
setRightNode(preNode, node);
|
||||
right = false;
|
||||
continue;
|
||||
}
|
||||
if (stack.isEmpty() || completeNode(node)) {
|
||||
stack.offer(node);
|
||||
preNode = node;
|
||||
continue;
|
||||
}
|
||||
if (Objects.nonNull(preNode) && preNode.isTable() && !completeNode(preNode)) {
|
||||
throw new ConfigException("cannot contain continuous | or & symbols");
|
||||
}
|
||||
|
||||
Node pre = stack.pollLast();
|
||||
if (Objects.isNull(node.getLeftNode())) {
|
||||
|
||||
Reference in New Issue
Block a user