Commit Graph

2025 Commits

Author SHA1 Message Date
009c11254d expression: add header for tidb_decode_plan result (#18440) 2020-07-13 13:57:37 +08:00
0df3b74f55 expression: make tidb_decode_key function try to decode the index value (#18245) 2020-07-03 18:13:05 +08:00
2627ca2116 executor: fix sum & avg on year type (#18318)
Signed-off-by: niedhui <niedhui@gmail.com>
2020-07-02 11:51:24 +08:00
bd28018526 expression: fix wrong check in builtinCastStringAsDecimalSig.evalDecimal (#16825) (#17696) 2020-06-28 10:56:10 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
bca31eaf62 *: refine the behavior of StrToInt and StrToFloat and support convert JSON to date, time and timestamp (#17902)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-22 11:59:24 +08:00
63c0ef8e5d planner: save explain result of plan in session for `explai ... (#17687) 2020-06-19 14:07:53 +08:00
027105ff1b expression: fix the wrong behavior of char function (#17598)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-19 12:11:54 +08:00
978370f7cb executor: add new agg function APPROX_COUNT_DISTINCT (#17175) 2020-06-18 22:00:14 +08:00
229392597a planner: avoid overwriting path.IndexFilters when deriving index path statistics (#18076) 2020-06-18 16:12:12 +08:00
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