提交 b8494008 编写于 作者: N null 提交者: Liang Zhang

refine DerviedColumn method which is dependent on the core path of query (#3268)

上级 f658f377
......@@ -37,7 +37,9 @@ public enum DerivedColumn {
ORDER_BY_ALIAS("ORDER_BY_DERIVED_"),
GROUP_BY_ALIAS("GROUP_BY_DERIVED_"),
AGGREGATION_DISTINCT_DERIVED("AGGREGATION_DISTINCT_DERIVED_");
private static final Collection<DerivedColumn> VALUES_WITHOUT_AGGREGATION_DISTINCT_DERIVED = getValues();
private final String pattern;
/**
......@@ -72,7 +74,7 @@ public enum DerivedColumn {
* @return is derived column or not
*/
public static boolean isDerivedColumn(final String columnName) {
for (DerivedColumn each : DerivedColumn.getValues()) {
for (DerivedColumn each : VALUES_WITHOUT_AGGREGATION_DISTINCT_DERIVED) {
if (columnName.startsWith(each.pattern)) {
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册