Commit Graph

115 Commits

Author SHA1 Message Date
40fa006cac *: collect coprocessor runtime stats for explain analyze (#9057) 2019-02-19 16:22:00 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
65066c8d1e Control the number of rows in chunks returned by SelectResult (#9293) 2019-02-14 11:48:01 +08:00
82d2726300 planner, statistics: build new histogram using range information (#7921) 2019-01-14 20:33:36 +08:00
351c4a5568 *: refine commit txn slow log (#8731) 2018-12-25 20:49:50 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
8c44f562f5 metrics: add different labels for restricted SQL and general SQL (#7631)
The newly added label is `sql_type`, it has value: `general` and `internal`,
users can use this label to filter metrics they have interest.

Also, add keyword `[INTERNAL]` for restricted SQL printed in slow log for
convenient identification.
2018-09-07 14:23:48 +08:00
2b776ac495 *: remove goroutine pool (#7564)
goroutine pool was introduced to handle stack copy cost, Go1.11 has 
many optimizations for stack copy, after upgrading to Go1.1, goroutine
pool is not necessary any more.
2018-08-31 11:23:14 +08:00
1d0d0a6666 distsql: let analyze use RC level and low priority (#7496) 2018-08-27 18:46:51 +08:00
e3952d6eb8 *: collect execution details and output them in slow query log (#7302) 2018-08-10 21:06:20 +08:00
a7fc9c323e distsql: disable read committed isolation level (#7280)
read committed isolation may cause inconsistent read.
Only Analyze request use read committed isolation level.
2018-08-06 13:07:06 +08:00
f107feed63 fix a bug that nullable unique index can not find null values using index. (#7163) 2018-07-27 15:04:21 +08:00
7c18d24933 executor, store: fixed daylight saving time issue (#6823)
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.

## What have you changed? (mandatory)

During coprocessor dag task,  it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package. 

I change `timeZoneOffset` to `zone` and add second return parameter `name string`.  The intentioned of doing this to adopt the convention of `time` package. 

For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`. 


## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)


## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
b1bc4209ca distsql: move SelectResult to file "select_result.go" (#7054) 2018-07-16 15:21:14 +08:00
2945ddd899 vendor: update tipb (#7055) 2018-07-15 21:34:21 +08:00
e94df345e5 distsql, main: fix some typos. (#6885) 2018-06-23 21:51:55 +08:00
353d120868 vendor: update tipb's version (#6825) 2018-06-14 13:15:02 +08:00
5c2d21eab4 *: remove function "NewChunk" (#6524) 2018-05-14 13:43:19 +08:00
b3bb5e8c8f *: support warnings when using coprocessor streaming (#6544) 2018-05-13 22:10:58 -05:00
5f2b16192e stats: fix query feedback bugs (#6444) 2018-05-09 12:27:32 +08:00
357d5df66b remove useless alias (#6473) 2018-05-05 22:36:54 +08:00
12dbd32854 *: rename NewRange to Range. (#6368) 2018-04-25 13:13:04 +08:00
6e317f57dd distsql: make behavior of TableHandlesToKVRanges correct. (#6364) 2018-04-24 23:36:12 +08:00
fb8efa5596 *: clean up code for set SQL statement priority, let it bypass plan (#6328) 2018-04-21 08:58:24 -05:00
5da8ac0957 *: make session variables control TiKV layer. (#6322)
And add a system variable `tidb_backoff_lock_fast` to change the backoff base time on read lock.
2018-04-20 16:06:34 +08:00
bfb6ec2ae8 distsql: remove unused code (#6227) 2018-04-04 23:19:57 +08:00
6287cfb8c2 *: modify 'session transaction isolation level' to take effect once (#6175) 2018-04-04 18:39:44 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
c398110154 *: improve performance of DecodeBytes in DecodeOneToChunk (#6135) 2018-03-29 19:11:44 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
6f43b37572 Add admin checksum table command (#6067) 2018-03-20 20:46:43 +08:00
eacca19bde executor: remove Next function for NestedLoopApplyExec (#6027) 2018-03-20 10:44:07 +08:00
98a2640286 *: support 'admin recover index' (#5980) 2018-03-15 18:04:35 +08:00
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
6a826fd0aa *: collect query feedback (#5909) 2018-03-12 15:37:09 +08:00
1cb6f19384 distsql: add unit test for distsql.go (#5928) 2018-03-12 14:10:03 +08:00
8f0477dad5 executor,distsql: Add a test that check coprocessor streaming flag (#5973) 2018-03-07 20:42:13 -06:00
9a3463fd81 distsql, mocktikv: handle warnings returned from tikv/mocktikv (#5906) 2018-03-06 13:20:27 +08:00
5461718c65 executor,distsql: set streaming flag for coprocessor request based on executor's type (#5916)
Decide whether a executor support streaming, TableScan/IndexScan/Selection support it.
If a coprocessor request need some operations like aggregation or topn, it's meanless
to use streaming for the request.
2018-03-05 21:21:28 -06:00
12a1a254fc config,distsql: add config for coprocessor streaming feature (#5917) 2018-02-28 21:36:22 -06:00
816c764cb5 *: change the interface for kv.Response (#5914) 2018-02-27 23:06:25 +08:00
9a14571f39 distsql: improve test coverage for "request_builder_test.go" (#5908) 2018-02-26 18:36:09 +08:00
27c65d25bb executor, distsql: move "requestBuilder" from package "executor" to "distsql" (#5903) 2018-02-26 12:46:51 +08:00
8268d4d8b4 *: move irrelevant code out of package "distsql" (#5893) 2018-02-24 18:52:09 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00