diff --git a/sqle/api/controller/v1/sql_rewriting.go b/sqle/api/controller/v1/sql_rewriting.go index f089cc841..de2d8c1cd 100644 --- a/sqle/api/controller/v1/sql_rewriting.go +++ b/sqle/api/controller/v1/sql_rewriting.go @@ -13,12 +13,16 @@ type RewriteSQLReq struct { type RewriteSQLData struct { // @Description 重写前的SQL业务描述 BusinessDesc string `json:"business_desc"` + // @Description 重写前的SQL执行逻辑描述 + LogicDesc string `json:"logic_desc"` // @Description 重写建议列表 Suggestions []*RewriteSuggestion `json:"suggestions"` // @Description 重写后的SQL RewrittenSQL string `json:"rewritten_sql"` // @Description 重写后的SQL业务描述 RewrittenSQLBusinessDesc string `json:"rewritten_sql_business_desc"` + // @Description 重写后的SQL执行逻辑描述 + RewrittenSQLLogicDesc string `json:"rewritten_sql_logic_desc"` // @Description 重写前后的业务不等价性描述,为空表示等价 BusinessNonEquivalentDesc string `json:"business_non_equivalent_desc"` diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 4ac63eab9..1ae3d7e9e 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -16438,6 +16438,10 @@ var doc = `{ "description": "@Description 重写前后的业务不等价性描述,为空表示等价", "type": "string" }, + "logic_desc": { + "description": "@Description 重写前的SQL执行逻辑描述", + "type": "string" + }, "rewritten_sql": { "description": "@Description 重写后的SQL", "type": "string" @@ -16446,6 +16450,10 @@ var doc = `{ "description": "@Description 重写后的SQL业务描述", "type": "string" }, + "rewritten_sql_logic_desc": { + "description": "@Description 重写后的SQL执行逻辑描述", + "type": "string" + }, "suggestions": { "description": "@Description 重写建议列表", "type": "array", diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index 5be770eef..4ae53711f 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -16422,6 +16422,10 @@ "description": "@Description 重写前后的业务不等价性描述,为空表示等价", "type": "string" }, + "logic_desc": { + "description": "@Description 重写前的SQL执行逻辑描述", + "type": "string" + }, "rewritten_sql": { "description": "@Description 重写后的SQL", "type": "string" @@ -16430,6 +16434,10 @@ "description": "@Description 重写后的SQL业务描述", "type": "string" }, + "rewritten_sql_logic_desc": { + "description": "@Description 重写后的SQL执行逻辑描述", + "type": "string" + }, "suggestions": { "description": "@Description 重写建议列表", "type": "array", diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 1881a312c..7c4e5b934 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -3536,12 +3536,18 @@ definitions: business_non_equivalent_desc: description: '@Description 重写前后的业务不等价性描述,为空表示等价' type: string + logic_desc: + description: '@Description 重写前的SQL执行逻辑描述' + type: string rewritten_sql: description: '@Description 重写后的SQL' type: string rewritten_sql_business_desc: description: '@Description 重写后的SQL业务描述' type: string + rewritten_sql_logic_desc: + description: '@Description 重写后的SQL执行逻辑描述' + type: string suggestions: description: '@Description 重写建议列表' items: