This commit is contained in:
lin
2022-07-01 16:10:02 +08:00
parent 7903e0d95c
commit ac0ceb4627

View File

@@ -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())) {