Commit Graph

2063 Commits

Author SHA1 Message Date
7690e292c1 expression: fix incorrect implementation in builtinRealIsFalseSig (#19658)
* fixup

* fixup
2020-09-01 19:58:24 +08:00
27ea908a5e planner: reset not null flag when Apply convert to Join (#19567) 2020-08-31 23:24:04 +08:00
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +08:00
64d3fb8f37 Revert "fix wrong flen in cast functions (#19020)" (#19606)
This reverts commit a363130f4e7277dbb027ce1e1e66e953e59ff416.
2020-08-31 13:20:29 +08:00
a363130f4e fix wrong flen in cast functions (#19020) 2020-08-30 17:07:27 +08:00
dy
844c114d10 expression: bug fix for vectorized casting real as time (#19485) 2020-08-29 22:51:31 +08:00
117b3e4400 plan, partition: re-implement hash partition pruning to support in and or and some other functions (#18574) 2020-08-28 17:14:42 +08:00
ba60cf5a69 charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation (#18776) 2020-08-27 23:20:48 +08:00
49af6a511f expression: Support stddev_pop function (#19195)
* add stddev_pop function

* fix for make check

* not push down

* add util test

* stddevpop inherit from varpop

* fix typo

* support std and stddev

* update go.mod

* uodate parser master

* fix ditto

* fix fix

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 19:42:53 +08:00
15ff461530 expression: set correct collation in InferType4ControlFuncs (#19483) 2020-08-27 16:52:55 +08:00
945f7cc4a0 ddl, tables: support the column type change between the integer types (#19059) 2020-08-26 21:30:14 +08:00
d355b82f1c expression: unicode_ci support when infer collation and charset information (#19142)
* add mix unicode_ci collation support

* comments change

* bug fix

* add test

* refactor illegal mix collation message

* fmt

* fix check

* fmt

* refactor infer collation

* refactor infer collation

* add charset info

* address comments

* return bin if something wrong

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:08:21 +08:00
c4a898e5ad expression: fix runtime error integer divide by zero (#19398)
* fix runtime error

* fix runtime error

* test for special case

* use int.min

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 18:49:21 +08:00
977449f8b0 planner: fix a bug that can't find column in indexLookupJoin with virtual generated column (#18516) 2020-08-25 16:09:31 +08:00
3ac0baf61c *: fix unable prune problem caused by mismatch column infos (#19391) 2020-08-25 12:24:48 +08:00
dy
bbc0502038 expression: add warnings for logarithm functions (#18668) 2020-08-19 16:41:02 +08:00
5153a4155a expression: fix incorrect collation when cast non-string type arg to string type (#19186) 2020-08-19 15:36:31 +08:00
cd8654fe6f ranger: support using nulleq conditions to calculate index ranges (#19035) 2020-08-19 12:45:24 +08:00
d0600fc78d expression: support tidb_decode_key for cluster index (#19237)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-18 17:53:39 +08:00
8bbeceb5ee expression: support handle two collation cannot substituted to each other (#19036) 2020-08-18 15:07:39 +08:00
6e8b20b719 tablecodec: fix new collation with cluster index cause error (#19179)
Co-authored-by: Evan Zhou <coocood@gmail.com>
2020-08-14 11:40:02 +08:00
baedc336af tablecodec: fix check cluster index table on new collation (#19181)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 21:14:44 +08:00
b9e90ef614 expression: fix wrong collation and coercibility (#19169) 2020-08-13 16:28:49 +08:00
84e07a2a59 planner: propagate NDV of column groups across plan nodes (#17854) 2020-08-12 16:39:11 +08:00
ed4004ac04 executor: fix apply with union scan and point batch point get (#19128) 2020-08-12 10:49:30 +08:00
ae779e1502 expression: simplify get priority by collation (#18783) 2020-08-11 23:51:25 +08:00
2b05ffd6e8 expression: cast json_extract as bool (#18948)
* fix mocktikv json expression

* fix issue 12233

* remove MysqlJSONS function

* add test case and fix literal to bool

* go fmt

* add more test case

* update test case
2020-08-07 16:53:48 +08:00
3df573d2fc planner,executor: use new table partition implementation and fix CI (#18981) 2020-08-06 17:50:40 +08:00
931ff98df5 simple fixes for the staticcheck linter (#18923)
Note that this found 2 bugs where errors were being silently ignored.

These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 13:38:17 +08:00
4490148b4e server: correct the length field in reply packets to the client for enum and set column types (#18897) 2020-08-04 20:15:32 +08:00
4645c6582d expression: check ErrTruncate/Overflow for CastRealAsDecimalSig (#18961) 2020-08-04 14:37:45 +08:00
950ca5062c plan: optimize the performance of decodePlan for big union query (#18891) 2020-08-03 14:17:36 +08:00
4170007fb6 *: remove mysql.TypeDecimal (#18787) 2020-07-29 15:26:22 +08:00
c7dcf9c542 util: fix a encode bug causes the wrong result of hashJoin with set and enum (#18855)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-07-29 14:12:10 +08:00
b642045ff2 charset: add utf8_unicode_ci and utf8mb4_unicode_ci interface (#18678)
* add unicode_ci interface

* fix build

* fix check

* fix test

* change comments

* add test

* Update util/collate/unicode_ci.go

Co-authored-by: djshow832 <zhangming@pingcap.com>

Co-authored-by: djshow832 <zhangming@pingcap.com>
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: djshow832 <873581766@qq.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-24 17:16:03 +08:00
baf6c99b95 *: fix a bug causes indexed virtual generated column return wrong value and refine admin check table (#18408) 2020-07-24 12:59:47 +08:00
d1b728b278 expression: fix wrong result when select with collation (#18665) 2020-07-23 12:54:22 +08:00
380e678a50 planner: fix wrong select result when using collation (#18639)
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com>
2020-07-16 17:30:38 +08:00
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