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
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
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