Skip to content

Commit

Permalink
daily update
Browse files Browse the repository at this point in the history
  1. update vitess dependency
  2. explain database prefix check
  • Loading branch information
martianzhang committed Nov 10, 2018
1 parent 347ad1d commit 11f1bc3
Show file tree
Hide file tree
Showing 9 changed files with 1,531 additions and 1,385 deletions.
10 changes: 7 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# 更新日志

# CHANGELOG

## 2018-11
- TODO: english translation
- DOING: english translation
- add -cleanup-test-database command-line arg
- fix -config arg load file error
- fix #87 RuleImplicitConversion value type mistach check bug
- fix #38 always true where condition check
- abandon stdin terminal interactive mod, which may seems like hangup

## 2018-10
- Fix SplitStatement mulitstatement eof bug #66
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ SOAR(SQL Optimizer And Rewriter)是一个对SQL进行优化和改写的自动化

## License

[Apache License 2.0](http://github.com/XiaoMi/soar/blob/master/LICENSE).
[Apache License 2.0](https://github.com/XiaoMi/soar/blob/master/LICENSE).
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ SOAR (SQL Optimizer And Rewriter) is a tool, which can help SQL optimization and

## License

[Apache License 2.0](http://github.com/XiaoMi/soar/blob/master/LICENSE).
[Apache License 2.0](https://github.com/XiaoMi/soar/blob/master/LICENSE).
2 changes: 1 addition & 1 deletion cmd/soar/soar.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func main() {
explainInfo, err := rEnv.Explain(q.Query,
database.ExplainType[common.Config.ExplainType],
database.ExplainFormatType[common.Config.ExplainFormat])
if err != nil {
if err != nil && strings.HasPrefix(vEnv.Database, "optimizer_") {
// 线上环境执行失败才到测试环境 EXPLAIN,比如在用户提供建表语句及查询语句的场景
common.Log.Warn("rEnv.Explain Warn: %v", err)
explainInfo, err = vEnv.Explain(q.Query,
Expand Down
4 changes: 2 additions & 2 deletions env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type VirtualEnv struct {
*database.Connector

// 保存DB测试环境映射关系,防止vEnv环境冲突。
DBRef map[string]string
hash2Db map[string]string
DBRef map[string]string // db -> optimizer_xxx
hash2Db map[string]string // optimizer_xxx -> db
// 保存Table创建关系,防止重复创建表
TableMap map[string]map[string]string
// 错误
Expand Down
46 changes: 23 additions & 23 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1016,68 +1016,68 @@
{
"checksumSHA1": "w8FCRjH70gM6QttB9QrEh9Y1x64=",
"path": "vitess.io/vitess",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "aKn1oKcY74N8TRLm3Ayt7Q4bbI4=",
"path": "vitess.io/vitess/go/bytes2",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "JVCEN4UGRmg3TofIBdzZMZ3G0Ww=",
"path": "vitess.io/vitess/go/hack",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "e1WJ7vCnVrlQQQlc6n/FewCDMso=",
"path": "vitess.io/vitess/go/sqltypes",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "ntFIQYkBS51G6y+FEkjFW40+HOU=",
"path": "vitess.io/vitess/go/vt/log",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "XozR8bmeSR5KTe/nlUJkpJY2HKI=",
"path": "vitess.io/vitess/go/vt/proto/query",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "OnWsUHLDKcO3spwH0jD55SvKD24=",
"path": "vitess.io/vitess/go/vt/proto/topodata",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "sBAuZ/itMR8U8qbK4yLHxkP6Cpc=",
"path": "vitess.io/vitess/go/vt/proto/vtgate",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "pLWM+SPGZs3k+IhjktE/cGUlpM0=",
"path": "vitess.io/vitess/go/vt/proto/vtrpc",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "3rucaIfitefjezWeglPndd50Mcw=",
"checksumSHA1": "3ggEFYVEhMPxyhkKhRGw3x1eZ9M=",
"path": "vitess.io/vitess/go/vt/sqlparser",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
},
{
"checksumSHA1": "oF4XzuOzwvj1iduX/lYqNSyY/HM=",
"path": "vitess.io/vitess/go/vt/vterrors",
"revision": "54855ec7b36906b6d53aa5af0f0293a0a73ae928",
"revisionTime": "2018-11-05T03:16:12Z"
"revision": "b06f7c89ac5f0c632d9bc9621c70b014d91b27f9",
"revisionTime": "2018-11-09T17:11:46Z"
}
],
"rootPath": "github.com/XiaoMi/soar"
Expand Down
24 changes: 17 additions & 7 deletions vendor/vitess.io/vitess/go/vt/sqlparser/ast.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 11f1bc3

Please sign in to comment.