[improvement][launcher]Use API to get element ID avoiding hard-code.

This commit is contained in:
jerryjzhang
2024-11-27 22:26:30 +08:00
parent 25559fdaa5
commit 111304486b
5 changed files with 45 additions and 17 deletions

View File

@@ -87,7 +87,7 @@ public class SqlQueryConverter implements QueryConverter {
if (!SqlSelectFunctionHelper.hasAggregateFunction(sql) && !SqlSelectHelper.hasGroupBy(sql)
&& !SqlSelectHelper.hasWith(sql) && !SqlSelectHelper.hasSubSelect(sql)) {
log.debug("getAggOption simple sql set to DEFAULT");
return AggOption.DEFAULT;
return AggOption.NATIVE;
}
// if there is no group by in S2SQL,set MetricTable's aggOption to "NATIVE"
@@ -107,7 +107,7 @@ public class SqlQueryConverter implements QueryConverter {
.count();
if (defaultAggNullCnt > 0) {
log.debug("getAggOption find null defaultAgg metric set to NATIVE");
return AggOption.OUTER;
return AggOption.DEFAULT;
}
return AggOption.DEFAULT;
}