Commit Graph

2603 Commits

Author SHA1 Message Date
d457dd7e31 test: correct TiDB-style executable comment version for auto_random (#14858) 2020-03-04 10:29:09 +08:00
9c970f137d infoschema: Migrate the infoschema's retrieving data logic for 'CharacterSets/Collations' to executor (#15103) 2020-03-03 22:29:12 +08:00
3722500e36 infoschema: Migrate the infoschema's retrieving data logic for 'engine' to executor (#15102) 2020-03-03 21:56:55 +08:00
2c5170875d collation: add some collation tests for HashJoinExec, MergeJoinExec and SelectExec (#15067) 2020-03-03 17:33:18 +08:00
9ae471c0ee *: fix data race for plan cache (#14756) 2020-03-03 16:03:09 +08:00
cdc782418c executor: fix hash join benchmark and add a simple hash join test (#14901) 2020-03-03 15:24:09 +08:00
fe5334a1ed executor: fix bug for virtual column in transaction (#15011) 2020-03-03 15:18:09 +08:00
82ca1f3f44 *: support pessimistic lock return values (#15063) 2020-03-03 15:11:17 +08:00
b3469e7964 *: fix a bug that the pessimistic lock doesn't work on a partition (#14921)
physicalID should be used if 'select for update' works on a
partitioned table.
2020-03-03 15:06:45 +08:00
efe3b8f56b executor: refine query metric error message (#15054) 2020-03-03 13:18:34 +08:00
5c68d537f4 *: support reload tls used by mysql protocol in place (#14749) 2020-03-03 10:01:39 +08:00
77dcdc546d *: Clear the name of some field in explain result. (#14958) 2020-03-02 17:43:22 +08:00
8f0091ef17 privilege: fix atomic problem of GRANT and REVOKE (#14219) 2020-03-02 15:58:18 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
7fa56616f8 executor: refactor the tso future in RC isolation (#14966) 2020-03-02 15:38:10 +08:00
c1114b9724 planner, executor: enable inline projection for index joins (#15004) 2020-03-02 15:32:09 +08:00
ae6d06b1c3 executor: fix unit test of select into file for windows (#14978) 2020-03-02 14:19:38 +08:00
8680c8a76b tables: add sequence binlog support (#14954) 2020-02-28 18:46:42 +08:00
c67419f9f4 infoschema: add more metrics table for diagnose report. (#14964) 2020-02-28 18:04:00 +08:00
05b691805a util: move ColumnsToProto from parser to util pkg (#14971) 2020-02-28 17:23:41 +08:00
caf18df25f planner: fix redundant brackets cause full group by check failed (#14955) 2020-02-28 17:10:38 +08:00
6d00e2169b planner: enable inline projection for hash join (#14783) 2020-02-28 16:28:10 +08:00
30e2bdcc52 *: remove some debug print in test files (#14977) 2020-02-28 12:52:59 +08:00
568cc224f7 expression: add builtin function WEIGHT_STRING() (#14792)
Add builtin-function WEIGHT_STRING(). MySQL manual described most of its behavior except:

If the input str is of numeric types, WEIGHT_STRING() in MySQL returns NULL, so does this implementation.
If the input str is of other types rather than string or numeric, the result of WEIGHT_STRING() in MySQL is not cleared. I simply evaluated the input as string.
2020-02-28 01:52:19 +08:00
1eba965c5f *: use the filepath package to make unit test portable on windows (#14962) 2020-02-27 20:43:32 +08:00
99e362d888 executor: unnecessary to initialize or reset the baseJoiner.chk if no condition in joiner (#14902) 2020-02-27 19:42:44 +08:00
332cef97f5 *: support index encode/decode for new collation (#14876) 2020-02-27 11:33:33 +08:00
e45584a9b7 executor: fix threshold check without group by bug (#14961)
Signed-off-by: crazycs <crazycs520@gmail.com>
2020-02-27 10:30:13 +08:00
236352e98f *: show build and probe side for join and index lookup related operators in explain result (#14838) 2020-02-26 17:12:09 +08:00
b64ad65636 planner: improve projection to keep order or keep index in some cases (#14510) 2020-02-26 14:02:36 +08:00
a7bdb82402 *: Reduce memory operations by simply passing size hint to make (#14922) 2020-02-25 15:44:36 +08:00
f2fa5c5fd5 expression: consider collations when comparing strings (#14913) 2020-02-25 15:06:37 +08:00
51a1323869 expression/types: check when insert binary literal (#9829) 2020-02-25 14:55:06 +08:00
b439573a7b executor: fix DATA RACE in TestParseSlowLogFile (#14868) 2020-02-24 23:09:36 +08:00
51fd695e66 executor: support the SELECT INTO ... OUTFILE syntax. (#14848) 2020-02-24 18:40:07 +08:00
dad33fff9d exec: remove duplicate auto-generated test cases (#14910) 2020-02-24 15:54:07 +08:00
3399f4be31 planner: distinguish FullScan and the RangeScan in explain/desc info (#14696) 2020-02-24 15:23:06 +08:00
998e5b79f9 executor: add more diagnosis rule to check some metrics exceed thresholds (#14882) 2020-02-21 22:06:34 +08:00
dc2889de1a *: make CLUSTER_SLOW_QUERY support query slow log at any time (#14878) 2020-02-21 14:25:29 +08:00
848dd01b98 executor: consider the collation in vecGroupChecker (#14859) 2020-02-21 14:10:30 +08:00
27b280dd05 *: specify time range via TIME_RANGE hint for metrics/inspection tables (#14874)
Signed-off-by: Lonng <heng@lonng.org>
2020-02-21 13:01:52 +08:00
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
b06e3e85b2 executor: make SLOW_QUERY support query slow log at any time (#14840) 2020-02-20 19:46:05 +08:00
b98c88c948 infoschema/executor: support field expression in show index and related infoschema (#14400) 2020-02-20 19:04:48 +08:00
fe05ed5257 planner, executor: adjustOverlongColName for CreateView (#14850) 2020-02-20 17:19:04 +08:00
6b0972957c config: change enable-slow-log to boolean (#14864) 2020-02-20 15:37:32 +08:00
3cd5fb61ad *: fix "create or replace view" infoschema is inconsistent (#14832) 2020-02-20 15:04:33 +08:00
d0ad25497b executor: add more diagnosis rule to check some metrics exceed thresholds (#14843) 2020-02-20 12:49:24 +08:00
a528e60e3b *: add auto_random id cache for statement retrying and table recover (#14711) 2020-02-19 18:53:03 +08:00
039a22ab50 executor: fix the potential goroutine leak in cluster log retriever (#14839) 2020-02-19 16:23:03 +08:00