Commit Graph

2617 Commits

Author SHA1 Message Date
a37a0ff461 store: check constraint for "Delete-Your-Writes" records when txn commit (#14968) 2020-03-06 16:45:48 +08:00
13d7322a0f executor: migrate dataForKeyColumnUsage from infoschema to executor (#15166) 2020-03-06 15:37:46 +08:00
fde73403fd expression: Add format_bytes and format_nano_time performance schema functions (#14975) 2020-03-06 11:50:46 +08:00
1d28e7cc1c executor: move testShowStatsSuite into SerialSuites (#15062) 2020-03-06 11:24:16 +08:00
2d5d2fde27 *: fix the same future wait twice in RC transaction (#15117) 2020-03-06 00:05:54 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
e9ba1446f6 executor: support SELECT FOR UPDATE for BatchPointGet (#15129) 2020-03-05 19:47:16 +08:00
dcb8b3d5dd executor: fix last_insert_id in auto_random mode (#15145) 2020-03-05 15:59:18 +08:00
6ccdf645dc ddl: add a channel to limit multiple DDL jobs writing at the same time (#14342) 2020-03-05 14:13:38 +08:00
debe5cbcff executor: Migrate dataForIndexes from package infoschema to exector (#15116) 2020-03-05 11:06:46 +08:00
d259e90127 infoschema, planner, executor: add virtual system table `infor… (#15121) 2020-03-04 20:48:52 +08:00
1771fff928 expression: make field and findInSet support collation (#15100) 2020-03-04 18:12:53 +08:00
8e10e90e31 *: add config diagnose and fix warning (#15107) 2020-03-04 16:58:46 +08:00
3b347958c6 infoschema: Migrate the infoschema's retrieving data logic for 'dataForCollationCharacterSetApplicability' to executor (#15115) 2020-03-04 16:29:16 +08:00
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