mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
[Fix][launcher]Fix a number of issues related to semantic modeling.
This commit is contained in:
@@ -15,7 +15,7 @@ public class ColumnSchema {
|
||||
|
||||
private FieldType filedType;
|
||||
|
||||
private AggOperatorEnum agg;
|
||||
private AggOperatorEnum agg = AggOperatorEnum.UNKNOWN;
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.enums;
|
||||
|
||||
public enum FieldType {
|
||||
primary_key, foreign_key, partition_time, time, dimension, measure;
|
||||
primary_key, foreign_key, partition_time, time, categorical, measure;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@ import java.util.List;
|
||||
@Data
|
||||
public class ModelBuildReq {
|
||||
|
||||
private String name;
|
||||
|
||||
private String bizName;
|
||||
|
||||
private Long databaseId;
|
||||
|
||||
private Long domainId;
|
||||
|
||||
@@ -211,7 +211,9 @@ public class QueryStructReq extends SemanticQueryReq {
|
||||
SelectItem selectExpressionItem = new SelectItem(function);
|
||||
String alias =
|
||||
StringUtils.isNotBlank(aggregator.getAlias()) ? aggregator.getAlias() : columnName;
|
||||
selectExpressionItem.setAlias(new Alias(alias));
|
||||
if (!alias.equals(columnName)) {
|
||||
selectExpressionItem.setAlias(new Alias(alias));
|
||||
}
|
||||
return selectExpressionItem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user