Skip to content

Commit

Permalink
Merge pull request #2824 from actiontech/sql_rewriting_fix_2
Browse files Browse the repository at this point in the history
sql rewriting: add RewrittenSQLBusinessDesc
  • Loading branch information
LordofAvernus authored Dec 13, 2024
2 parents 6258d7e + 93eb6ee commit 83848cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqle/api/controller/v1/sql_rewriting.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type RewriteSQLData struct {
Suggestions []*RewriteSuggestion `json:"suggestions"`
// @Description 重写后的SQL
RewrittenSQL string `json:"rewritten_sql"`
// @Description 重写后的SQL业务描述
RewrittenSQLBusinessDesc string `json:"rewritten_sql_business_desc"`
// @Description 重写前后的业务不等价性描述,为空表示等价
BusinessNonEquivalentDesc string `json:"business_non_equivalent_desc"`

Expand Down
4 changes: 4 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16442,6 +16442,10 @@ var doc = `{
"description": "@Description 重写后的SQL",
"type": "string"
},
"rewritten_sql_business_desc": {
"description": "@Description 重写后的SQL业务描述",
"type": "string"
},
"suggestions": {
"description": "@Description 重写建议列表",
"type": "array",
Expand Down
4 changes: 4 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -16426,6 +16426,10 @@
"description": "@Description 重写后的SQL",
"type": "string"
},
"rewritten_sql_business_desc": {
"description": "@Description 重写后的SQL业务描述",
"type": "string"
},
"suggestions": {
"description": "@Description 重写建议列表",
"type": "array",
Expand Down
3 changes: 3 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3539,6 +3539,9 @@ definitions:
rewritten_sql:
description: '@Description 重写后的SQL'
type: string
rewritten_sql_business_desc:
description: '@Description 重写后的SQL业务描述'
type: string
suggestions:
description: '@Description 重写建议列表'
items:
Expand Down

0 comments on commit 83848cb

Please sign in to comment.