Commit Graph

1917 Commits

Author SHA1 Message Date
1bd1c07c05 expression: fix wrong behavior in values function for Bit(1). (#15350) 2020-03-19 15:40:45 +08:00
5e8706a1f6 util/collate: remove CollatorOption (#15472)
`CollatorOption` was used to specify the `PadLen` which aims to support
"PADDING" attribute of the collations. But now it is not needed anymore,
since TiDB actually implements "PADDING" by removing trailing spaces.
2020-03-19 15:16:29 +08:00
7a51cb6657 plan, expression: add date function support for hash partition (#15068) 2020-03-18 13:53:22 +08:00
1ff32ace27 executor: use MySQL compatible truncate error code (#15422) 2020-03-18 12:28:43 +08:00
6f1d2123dd expression: avoid reading/writing FieldType struct of Constant concurrently (#15364) 2020-03-16 19:04:53 +08:00
f58d9ffc65 *: add builtin function json_storage_size (#15248) 2020-03-15 10:00:23 +08:00
8d357790c7 expression: vectorized builtinFormatWithLocaleSig (#14920) 2020-03-15 09:52:53 +08:00
74626823f4 expression: fix collate bug in constant propagation (#15066) 2020-03-13 22:55:23 +08:00
4f21076918 expression: fix wrong behavior for IF(not_int, *, *) (#15016) 2020-03-13 15:30:24 +08:00
b18759b8c1 expression: fix behavior for CASE WHEN (not_int) (#15309) 2020-03-13 15:23:55 +08:00
8db471ff1f expression: fix the issue that casting a string to a real number is not compatible with MySQL (#15321) 2020-03-12 16:15:32 +08:00
80d577a143 expression: update builtinLike to be collation-aware (#15049) 2020-03-12 16:08:32 +08:00
280f4fa8ed copr: fix inconsistant behavior caused by push down dayname (#15326) 2020-03-12 16:03:03 +08:00
7a43056bab planner: forbid converting subqueries to inner-joins if the left and the right key have different collations (#15290) 2020-03-12 15:39:32 +08:00
a999ef6981 expression: support different expr push down for TiKV and TiFlash (#15174) 2020-03-11 16:16:03 +08:00
1cb773919b expression: vectorized builtinDateFormatSig (#14934) 2020-03-11 15:22:44 +08:00
6f6c415298 expression: vectorized builtinSleepSig (#15193) 2020-03-11 11:38:32 +08:00
188abc850a expression: fix invalid evaluation in builtinDateFormat (#15263) 2020-03-11 10:44:23 +08:00
7c39e5e5e0 expression: fix decimal of function FROM_UNIXTIME (#14936) 2020-03-10 21:36:02 +08:00
183a9d585a *: update explain info of outer hash joins (#15247) 2020-03-10 20:38:02 +08:00
20703ee8a6 expression: return binary charset and collation if there is no string-type argument in DeriveCollationFromExprs (#15250) 2020-03-10 17:26:46 +08:00
f5280c3cd4 expression: support sequence function unfold (#15144) 2020-03-09 19:43:46 +08:00
55b3e1110c *: reduce the allocation caused by Datum.Copy (#15219) 2020-03-09 17:38:46 +08:00
a7244ba645 expression, planner: fix group by and order by with explicit collate (#15186) 2020-03-09 16:55:46 +08:00
e58cef5718 expression,types: wrap ParseUint error with stack (#15188) 2020-03-09 14:28:45 +08:00
9e98f706ae planner, executor: support point get as a option of DataSource (#14775) 2020-03-09 10:47:16 +08:00
91694dc36d executor: add integration test cases for HashAggExec, StreamAggExec, IndexReader and IndexLookup (#15104) 2020-03-06 17:46:46 +08:00
8835f8efca *: set charset and collate for string literals correctly (#15156) 2020-03-06 17:01:46 +08:00
fde73403fd expression: Add format_bytes and format_nano_time performance schema functions (#14975) 2020-03-06 11:50:46 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
5dbe82b744 expression: push collation information down to TiKV and MockTiKV (#15125) 2020-03-05 20:02:31 +08:00
e9ba1446f6 executor: support SELECT FOR UPDATE for BatchPointGet (#15129) 2020-03-05 19:47:16 +08:00
1771fff928 expression: make field and findInSet support collation (#15100) 2020-03-04 18:12:53 +08:00
55f5cf538d planner/expression: constant propagation and predicate pushdown should be aware of plan cache (#14941) 2020-03-04 16:23:17 +08:00
4a0f1861fa expression: make TestNowAndUTCTimestamp more stable (#15058) 2020-03-04 00:12:39 +08:00
4af313c2f5 planner: add the implementation for SetCollationExpr (#14959)
Set the collation of the child of this expression to the one specified by it.
2020-03-03 17:58:21 +08:00
2c5170875d collation: add some collation tests for HashJoinExec, MergeJoinExec and SelectExec (#15067) 2020-03-03 17:33:18 +08:00
c8496fcc93 expression: add not null flag in PB when constant not null (#14912) 2020-03-03 17:07:09 +08:00
9ae471c0ee *: fix data race for plan cache (#14756) 2020-03-03 16:03:09 +08:00
1a92dc07df collation: fix wrong collation information used in expression calculation (#15006) 2020-03-02 17:30:04 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
8680c8a76b tables: add sequence binlog support (#14954) 2020-02-28 18:46:42 +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
e43e4d4fdd *: fix bug of cluster table agg push down. (#14923) 2020-02-27 13:42:54 +08:00
332cef97f5 *: support index encode/decode for new collation (#14876) 2020-02-27 11:33:33 +08:00
902c6ca2b9 planner,expression,table: clean up the old partition pruning code (#14834) 2020-02-27 00:52:03 +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
dbcf5fbcc8 planner: show cast type in EXPLAIN (#14942) 2020-02-26 16:36:35 +08:00
b64ad65636 planner: improve projection to keep order or keep index in some cases (#14510) 2020-02-26 14:02:36 +08:00