提交 30d19511 编写于 作者: A Andrew Khitrin

Redshift text plan node name


Former-commit-id: 8b747e4d
上级 f7a528b7
......@@ -31,6 +31,8 @@ import java.util.Set;
*/
public class PostgrePlanNodeText extends PostgrePlanNodeBase<PostgrePlanNodeText> {
private static final int OPERATION_LEN_MIN = 2;
private static final String SEPARATOR = " ";
private static final String OPTIONS_SEPARATOR = ":";
......@@ -237,16 +239,24 @@ public class PostgrePlanNodeText extends PostgrePlanNodeBase<PostgrePlanNodeText
parseObjName(attributes, tokens, operation);
attributes.put(PostgrePlanNodeBase.ATTR_NODE_TYPE, operation);
String addInfo = getAdditional(tokens);
if (operation.length() >= OPERATION_LEN_MIN && addInfo.length() > 0) {
attributes.put(PostgrePlanNodeBase.ATTR_NODE_TYPE, addInfo);
} else {
attributes.put(PostgrePlanNodeBase.ATTR_NODE_TYPE, operation);
if (addInfo.length() > 0) {
attributes.put(ATTR_ADD_NAME, addInfo);
}
}
parseAttr(attributes, tokens);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册