mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
[improvement][headless]Add databaseType into the Schema part of the Text2SQL prompt. #1621
This commit is contained in:
@@ -16,6 +16,7 @@ import java.util.stream.Collectors;
|
||||
@Data
|
||||
public class DataSetSchema {
|
||||
|
||||
private String databaseType;
|
||||
private SchemaElement dataSet;
|
||||
private Set<SchemaElement> metrics = new HashSet<>();
|
||||
private Set<SchemaElement> dimensions = new HashSet<>();
|
||||
|
||||
@@ -13,6 +13,7 @@ import java.util.List;
|
||||
@NoArgsConstructor
|
||||
public class DataSetSchemaResp extends DataSetResp {
|
||||
|
||||
private String databaseType;
|
||||
private List<MetricSchemaResp> metrics = Lists.newArrayList();
|
||||
private List<DimSchemaResp> dimensions = Lists.newArrayList();
|
||||
private List<ModelResp> modelResps = Lists.newArrayList();
|
||||
|
||||
Reference in New Issue
Block a user