f1e89cde19
*: use lower-case of github.com/sirupsen/logrus ( #5400 )
...
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus
* vendor: update pd
* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
af4e73c43a
tidb: always rebuild plan for retry. ( #5218 )
...
Fixes a bug that results in index and record inconsistency.
We build UnionScan based on if transaction is dirty, but this is a runtime property, may change during retry.
To simplify the logic and avoid potential bug, always rebuild the plan for retrying statements.
2017-11-25 09:50:32 +08:00
02f6bb27c7
*: remove goCtx from session struct ( #5174 )
...
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
15212587e1
*: remove resolver.go ( #4988 )
2017-11-10 14:42:10 +08:00
49f2a908a6
remove read-only statement from transaction auto retry ( #5026 )
...
* *: Ignore readonly statement when retrying
* remove explain statement from retry
* remove all select statement from retry except It has setvar functions
* remove execute statement from retry if it is read-only statement
2017-11-08 19:03:05 +08:00
29153d7b20
*: opentracing for Execute,ParseSQL,Compile,runStmt ( #4929 )
2017-10-31 05:13:59 -05:00
ebf090b0dc
plan, executor: remove some XXStmt from resolver.go ( #4823 )
...
* plan, executor: remove AdminStmt, AlterTableStmt, AnalyzeTableStmt, DropStatsStmt, CreateIndexStmt,
CreateTableStmt, DoStmt, DropTableStmt, DropIndexStmt, RenameTableStmt, SetStmt, ShowStmt from resolver.go
2017-10-24 06:16:34 -05:00
d88344f869
plan, tidb: support plan cache for SELECT statement ( #4644 )
2017-10-11 22:34:04 -05:00
e3ab386874
*: revert 4669 "make prepare stmt retriable when schema is out-dated" ( #4676 )
...
* Revert "executor: analyze use NewSelectResult (#4667 )"
This reverts commit d1d78b726ba6ba4c79d38ce95252fc41753db02e.
* Revert "table: Speed up the add index operation (#4632 )"
This reverts commit d782ce103eea7680f289f6a35576dc9349bb0bb4.
* Revert "*: make prepare stmt retriable when schema is out-dated. (#4669 )"
This reverts commit 3dfbf52e64cc0af6039758d169bf133b965f5584.
2017-09-28 16:19:53 +08:00
3dfbf52e64
*: make prepare stmt retriable when schema is out-dated. ( #4669 )
2017-09-28 10:41:22 +08:00
88e1666ac6
*: change the log package to logrus ( #4452 )
2017-09-08 00:45:07 -05:00
678c6924be
*: support priority for SELECT HIGH_PRIORITY statement ( #4119 )
...
*: support priority for SELECT HIGH_PRIORITY statement
2017-08-10 01:09:57 -05:00
d0b00665aa
domain,executor: ignore restricted sql for statement count metrics ( #4064 )
...
To make the statement count metrics more precise, we should ignore
some background job such as update statistics and load privilege.
2017-08-07 17:00:46 +08:00
8adac8fe6c
*: set low priority for expensive SQL and high priority for point get ( #3881 )
2017-08-02 13:53:36 +08:00
2828e29a5b
executor: refine statement count metrics ( #2477 )
2017-01-16 12:34:21 +08:00
0adabe53a1
*: begin a transaction in PrepareTxnCtx, unify in transaction. ( #2290 )
...
Transaction should has the same life cycle as TxnCtx, so create a
new transaction in PrepareTxnCtx if transaction is nil or invalid.
2016-12-21 16:48:19 +08:00
c24c90b4d3
tidb, variable: refactor retry, add TransactionContext ( #2256 )
2016-12-16 11:07:59 +08:00
d406c77c1f
Revert "tidb, variable: refactor retry, add TransactionContext" ( #2255 )
2016-12-15 10:42:04 +08:00
ff0ceb1785
tidb, variable: refactor retry, add TransactionContext ( #2254 )
2016-12-15 10:35:57 +08:00
5230f5eabd
variable: define StatementContext. ( #2121 )
...
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
0af8520a78
sessionctx/variable: remove dependency on context package. ( #2064 )
...
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
7ddb150920
executor: add more statements for metric of statement counter ( #1967 )
2016-11-15 14:34:15 +08:00
1f1a60c02a
*: improve log ( #1944 )
...
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
1550e76e6c
executor: add comments in executor package. ( #1876 )
...
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
a33240d8a8
parser: set flag in parse function. ( #1799 )
...
Every `ast.Statement` needs to set flag before use, set the flag in parse function,
so we don't need to set it somewhere else and won't forget to do it.
2016-10-09 11:36:56 +08:00
93e6796d2b
*: support history read with old schema ( #1790 )
...
When user set 'tidb_snapshot' variable, load and use the schema at the snapshot time.
2016-10-08 19:54:48 +08:00
f751336f70
executor: add metric for statement counter ( #1755 )
2016-09-26 13:09:28 +08:00
50fa99ad60
server: add metrics for duration of each session execute stage ( #1751 )
2016-09-23 14:42:29 +08:00
1dd9e89eb0
*: write binlog to unix socket. ( #1660 )
...
support write binlog to a unix socket through grpc.
2016-09-21 13:09:03 +08:00
e4ac5301ce
remove useless code. ( #1609 )
2016-08-20 16:00:20 +08:00
13910f108c
ddl: fix ddl update join table. ( #1426 )
2016-07-12 12:52:18 +08:00
cad94acb54
Store row data in single kv pair ( #1347 )
2016-06-28 11:15:09 +08:00
921677399e
Hanfei/apply ( #1318 )
...
add apply operator.
2016-06-15 15:23:05 +08:00
a71005710f
plan: merge 'optimizer/plan' and 'optimizer' into one package. ( #1300 )
2016-06-07 20:49:05 +08:00
f3a0f1af78
executor: fix adapter statement. ( #1292 )
...
Implements `OrgionText`, 'SetText` and 'IsDDL`.
2016-06-06 11:35:07 +08:00
3671f3958f
xapi: support IN expression push down. ( #1147 )
...
* xapi: support IN expression push down.
2016-04-25 19:50:33 +08:00
041dfd97c1
executor: evaluate subquery before executing outer query. ( #1133 )
...
* executor: evaluate subquery before executing outer query.
So outer query can push down subquery values.
* evaluator: extract a function to evaluate subquery.
* evaluator: add comments on exported function.
2016-04-21 21:51:39 +08:00
b5fbabc05e
*: Remove plan.go/stmt.go/rset.go
...
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
68eb8e567e
*: remove old code
2016-02-29 11:40:32 +08:00
64912c8597
*: Implement perfschema with MemoryTable
2016-02-29 10:28:30 +08:00
a4503d3514
*: Address comment
2016-02-02 10:19:47 +08:00
7dc4196837
*: Support subquery in new plan
2016-02-01 08:47:23 +08:00
dd5e520157
*: Refactor new plan work flow
2016-01-11 17:22:51 +08:00
9b17f3f319
executor: clean up.
2016-01-02 10:44:13 +08:00
3b926794f6
executor: fix build
2015-12-18 19:59:18 +08:00
c5fae25a60
optimizer: validates '?' is not allowed in non-prepare mode.
2015-12-18 19:40:45 +08:00
dcdb32dbde
plan. executor: support prepared statement.
2015-12-18 16:56:08 +08:00
429716fc37
optimizer, executor: address comment.
2015-12-07 16:16:34 +08:00
f3e62b87ec
optimizer: add static evaluator and range builder.
2015-11-24 20:44:12 +08:00
96ff5b0e25
executor: use index.
2015-11-24 14:16:27 +08:00