mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
[improvement](chat) Added query type parsing, supporting metrics, entities, and other query types. (#392)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.tencent.supersonic.chat.api.pojo;
|
||||
|
||||
/***
|
||||
* Query Type
|
||||
*/
|
||||
public enum QueryType {
|
||||
/**
|
||||
* queries with metrics included in the select statement
|
||||
*/
|
||||
METRIC,
|
||||
/**
|
||||
* queries with entity unique key included in the select statement
|
||||
*/
|
||||
ENTITY,
|
||||
/**
|
||||
* the other queries
|
||||
*/
|
||||
OTHER
|
||||
}
|
||||
@@ -40,6 +40,7 @@ public class SemanticParseInfo {
|
||||
private Map<String, Object> properties = new HashMap<>();
|
||||
private EntityInfo entityInfo;
|
||||
private SqlInfo sqlInfo = new SqlInfo();
|
||||
private QueryType queryType = QueryType.OTHER;
|
||||
|
||||
public Long getModelId() {
|
||||
return model != null ? model.getId() : 0L;
|
||||
|
||||
Reference in New Issue
Block a user