未验证 提交 bfb7a021 编写于 作者: L liuminghui233 提交者: GitHub

[IOTDB-2362] [REST API] Use noQuery to execute "count", return "SHOW is not supported" (#4933)

上级 9d615bb4
......@@ -395,7 +395,7 @@ public class PlanExecutor implements IPlanExecutor {
return processShowQueryResource();
default:
throw new UnsupportedOperationException(
String.format("operation %s is not supported", plan.getOperatorType()));
String.format("operation %s is not supported", plan.getOperatorName()));
}
}
......
......@@ -140,6 +140,10 @@ public abstract class PhysicalPlan {
return operatorType;
}
public String getOperatorName() {
return operatorType.toString();
}
public void setOperatorType(Operator.OperatorType operatorType) {
this.operatorType = operatorType;
}
......
......@@ -98,6 +98,11 @@ public class ShowPlan extends PhysicalPlan {
return String.format("%s %s", getOperatorType(), showContentType);
}
@Override
public String getOperatorName() {
return String.format("%s: %s", getOperatorType(), showContentType);
}
public enum ShowContentType {
FLUSH_TASK_INFO,
TTL,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册