Commit Graph

2015 Commits

Author SHA1 Message Date
8a33340f2b expression: fix the panic when we use unix_time expression in prepare and execute statement. (#17855)
* expression: fix Const.DeferredExpr's wrong behavior

* clean the code

* FIX UT

* revert the change and add check for `funcCallToExpression`

* solve conflicts

* fix typo

* address comments

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-15 12:42:01 +08:00
765612fb54 expression: fix the wrong behaviour bug of vec LeastTime (#17848) 2020-06-12 10:39:47 +08:00
06361c2d98 expression: fix type infer error for count (#17871) 2020-06-11 10:22:54 +08:00
23d6430841 test: stabilize test TestSleepVectorized (#17910)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 19:50:27 +08:00
83632ecc6e ddl: fix a bug that creating a table with set column don't handle collation correctly (#17905)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 19:37:40 +08:00
30cb0312d1 tablecode: improve the coverage of key path in tablecodec (#16986) 2020-06-10 14:42:15 +08:00
4856f80d98 expression: fix a bug that the coercibility of user variable is wrong (#17676)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 13:12:11 +08:00
c9c9f873e9 planner: do correlated column's datum match in physical optimize phase (#17578) 2020-06-09 14:56:38 +08:00
36ea109b83 *: record execute runtime information in slow log (#17573) 2020-06-09 12:16:47 +08:00
1481cccb35 table: improve the coverage of key path in table (#17026)
* cover column

* cover collation union_scan

* go fmt

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-08 12:39:45 +08:00
7fc1ca3174 types/json: fix JSON comparison for int and float (#17622) 2020-06-05 16:05:58 +08:00
a0ebf95785 expression: pushdown expr to tiflash without check new collation status (#17683) 2020-06-05 12:57:50 +08:00
583956dff5 expression: fix type infer for decimal property in count agg (#17368) 2020-06-05 12:43:49 +08:00
3a4e733af6 test: fix testleak in TestIntegration (#17667)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-04 17:34:49 +08:00
a501f25b2a expression: Fix the wrong behavior of const.String() (#17495) 2020-06-04 15:04:00 +08:00
2d898ef971 expression: enable if/bitxor/bitneg pushdown for TiFlash (#17626) 2020-06-04 10:31:13 +08:00
23af4b9be9 expression: fix a bug that hex function return the wrong result if the type of column is binary string (#17590)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-03 11:32:02 +08:00
d53336bd4a planner: support sql_select_limit session / global variable (#17444) 2020-06-02 18:02:29 +08:00
f03677cc11 expression: push down expr json_length to tiflash (#17588) 2020-06-02 17:37:05 +08:00
23759514ec expression: support collation for REGEXP function (#17255) 2020-06-02 15:18:47 +08:00
eafa1229ab expression: fix wrong result for field function (#15511) 2020-06-01 17:00:19 +08:00
f1b21b562a types: match MySQL behavior with datetime delimiters (#17376) 2020-05-29 11:05:35 +08:00
777907bcee planner: push agg below partition union all by default (#17262) 2020-05-28 18:11:13 +08:00
b5bb0090e7 *: fix LIKE expressions with _ following % (#17418) 2020-05-28 15:05:10 +08:00
12bd862a46 ddl,expression: fix using extract() function as partition key when creating partition table (#17461) 2020-05-28 14:58:03 +08:00
8da89b7af8 expression: speed up TestIssue16697 (#17400) 2020-05-26 13:58:14 +08:00
313ed01f03 expression,executor: fix DIV() as partition expression behavior under ERROR_FOR_DIVISION_BY_ZERO sql_mode (#17302) 2020-05-20 17:05:14 +08:00
f17da4a5d7 plan, expression: support is null in hash partition pruning (#17281) 2020-05-20 15:54:44 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
78d69004ad ddl: consider collation when checks enum value in create table statement (#17177) 2020-05-15 16:49:22 +08:00
bcbc25db68 executor: make the aggregation function distinct consider collations (#17182) 2020-05-15 15:59:15 +08:00
ea2e215ff8 *: fix a bug caused by the wrong collation setting which leads to the wrong result of collation function (#17116) 2020-05-15 13:30:49 +08:00
1417ba2288 *: fix a bug that don't handle truncate properly for virtual generated column (#17217) 2020-05-14 20:57:55 +08:00
e8779717d9 planner, expression: Remove the default asc order in explain result (#17074) 2020-05-14 17:38:19 +08:00
f7ca1164b1 copr: fix push down function in integration test (#16533) 2020-05-13 22:04:23 +08:00
a1763c1b6e executor: fix memory corrupt in COUNT/JSON_OBJECTAGG/GROUP_CONCAT (#17106) 2020-05-13 16:58:20 +08:00
52837168ea executor: make memory tracing in ProjectionExec more accurate (#17109) 2020-05-12 14:13:05 +08:00
6a49bb4a84 *: fix a bug which causes function return truncated result (#17101) 2020-05-12 12:54:35 +08:00
d8c0659681 planner: fix TiDB server panic when uses indexMerge with the virtual generated column (#17065) 2020-05-11 15:40:29 +08:00
d823deb583 expression: fix case-sensitive problem for function INSTR and LOCATE (#16792) 2020-05-09 18:00:05 +08:00
3224393c7f executor: fix wrong plan type for dataReaderBuilder error (#17028) 2020-05-08 14:34:45 +08:00
d367a0101e expression: after introducing collation, the experssion should be thread-safe (#16600) 2020-05-06 21:22:40 +08:00
7ebcc20398 executor: support GROUP_CONCAT(ORDER BY) (#16591) 2020-05-06 18:41:22 +08:00
2daee416f3 expression: keep xor result consistent with mysql 8 (#15934) 2020-05-06 14:04:32 +08:00
9d391949cd expression: refactor logic about checking illegal mix collations (#16866) 2020-04-29 16:40:56 +08:00
f51c2001bf expression: return an error when finding some expressions cannot be pushed down to avoid panic (#16671) 2020-04-27 20:47:37 +08:00
af376db3dc *: refactor Handle in tablecodec and rowcodec (#16705)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-23 18:55:59 +08:00
8fa4ffdf4c expression: mark row_count as un-cacheable (#16654) 2020-04-23 14:27:50 +08:00
242ce93302 Revert "expression: support NO_ZERO_DATE sql_mode" (#16740) 2020-04-23 13:37:19 +08:00
db7c13537a expression: support NO_ZERO_DATE sql_mode (#16053) 2020-04-22 23:27:01 +08:00