mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
[improvement][headless]Release brand new version of Translator module.
This commit is contained in:
@@ -41,6 +41,7 @@ public abstract class BaseSemanticCorrector implements SemanticCorrector {
|
||||
|
||||
protected Map<String, String> getFieldNameMap(ChatQueryContext chatQueryContext,
|
||||
Long dataSetId) {
|
||||
|
||||
return getFieldNameMapFromDB(chatQueryContext, dataSetId);
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,8 @@ public class PromptHelper {
|
||||
}
|
||||
if (StringUtils.isNotEmpty(metric.getDefaultAgg())) {
|
||||
metricStr.append(" AGGREGATE '" + metric.getDefaultAgg().toUpperCase() + "'");
|
||||
} else {
|
||||
metricStr.append(" AGGREGATE 'NONE'");
|
||||
}
|
||||
metricStr.append(">");
|
||||
metrics.add(metricStr.toString());
|
||||
|
||||
Reference in New Issue
Block a user