Skip to content

Commit 8290f73

Browse files
Merge pull request #3172 from actiontech/sqlfash_api_update_ce
refactor: remove unused RewriteResult and GetRewriteResultResp types …
2 parents 88708b2 + 7d25227 commit 8290f73

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

sqle/server/optimization/sql_flash/sql_flash_types.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -238,23 +238,6 @@ type CreateRewriteTaskResp struct {
238238
} `json:"data"`
239239
}
240240

241-
// 重写任务结果
242-
type RewriteResult struct {
243-
ID string `json:"id"`
244-
TaskID string `json:"task_id"`
245-
OriginSQL string `json:"origin_sql"`
246-
Metadata string `json:"metadata"`
247-
OptimizeState string `json:"optimize_state"` // 优化状态:running, rewrite_done, failed等
248-
OptimizeSteps []*OptimizeStep `json:"optimize_steps"` // 优化步骤
249-
}
250-
251-
// 获取重写任务结果响应
252-
type GetRewriteResultResp struct {
253-
Code json.Number `json:"code"`
254-
Message string `json:"message"`
255-
Data *RewriteResult `json:"data"`
256-
}
257-
258241
// 创建索引推荐任务请求
259242
type CreateAdviseIndexTaskReq struct {
260243
Explain string `json:"explain"` // 执行计划信息

0 commit comments

Comments
 (0)