8ed9a6ff6d
expression: fix TIMESTAMP func get wrong result with decimal ( #15185 ) ( #20088 )
2020-10-15 15:46:03 +08:00
d726ba647e
expression: support decode more types through tidb_decode_key() ( #20382 )
2020-10-15 15:12:28 +08:00
3d4016fe46
*: change file mode to 0644 ( #20443 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-10-14 16:35:31 +08:00
a7f9d7a67a
expression: fix data too long when convert to bit returns null value ( #20241 )
2020-10-09 14:20:10 +08:00
2f8092ea84
expression: fix a bug that the coercibilities of enum and set are wrong ( #20274 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-10-09 14:01:39 +08:00
80f3c9e836
expression: unset binary flag for *_bin collation column ( #20269 )
2020-10-04 11:01:10 +08:00
1d34c333f4
expression: avoid constant propagate for the hybrid types ( #20258 )
2020-09-29 16:11:32 +08:00
5eaaa5c649
expression: fix a bug that from_unixtime + union all returns truncated result ( #20225 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-09-27 12:39:38 +08:00
47a182f76a
executor: fix a bug that the generated column doesn't handle bad null value ( #20193 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-09-25 15:57:36 +08:00
fd0299f58e
*: remove simple rewriter ( #19828 )
2020-09-23 12:17:53 +08:00
462927bf31
types: fix datetime lower part overflow check ( #19822 )
2020-09-22 19:30:08 +08:00
9876de8961
planner: disable SQL_CALC_FOUND_ROWS/LOCK IN SHARE MODE by default ( #19506 )
2020-09-18 19:18:37 +08:00
7948c125ac
expression: Short cut expr vec bug ( #19775 )
2020-09-18 12:19:52 +08:00
73e03c75e6
ddl: check constraint when alter enum/set type column ( #19806 )
2020-09-17 09:52:14 +08:00
03ca22b14a
expression: consider time zone convert when running from_unixtime test ( #19963 )
...
Signed-off-by: wangggong <793160615@qq.com >
2020-09-14 11:02:39 +08:00
c022fdcaeb
expression: avoid unnecessary warnings/errors when folding constants in control expr ( #19675 )
...
* reduce unnecessary warnings/errors in constrant fold
* update formate
* add commits
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-09 20:08:50 +08:00
0c36203f1d
expression: add new scalar function IsTruthWithNull ( #19621 )
2020-09-09 16:03:10 +08:00
bc3c84afb2
ddl: add partition should not take table information ( #19671 )
2020-09-08 21:33:53 +08:00
449587a085
*: using standard error to replace terror ( #19425 )
2020-09-08 20:15:51 +08:00
15432287cc
expression: incorporate unicode_ci into constant propagation ( #19555 )
...
* handle constant propagation
* fmt
* uncomment
Co-authored-by: wjHuang <huangwenjun1997@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Zhang Jian <zjsariel@gmail.com >
2020-09-04 17:03:29 +08:00
5b26588eba
expression: add linear search for the interval function ( #19543 )
...
* add linear search for interval
* update test
* remove debug info
* fix mistakenly erased code
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-04 12:07:32 +08:00
60172ca621
ddl: trim enum and set trailing spaces automatically ( #19612 )
...
* add test
* check tidy
* change parser
* change parser
* update parser
* update parser
* fix check
Co-authored-by: tangenta <tangenta@126.com >
Co-authored-by: Zhang Jian <zjsariel@gmail.com >
2020-09-04 08:40:21 +08:00
9c344ce66e
types: fix bug of converting enum and set ( #19699 )
2020-09-03 23:43:49 +08:00
b6ae01ac61
*: make 'cast' get the correct charset and collate ( #15146 )
2020-09-03 15:23:21 +08:00
d8b3d329cd
expression: fallback vectorized control expressions ( #19367 )
...
* fallback vectorized branch statements
* update test
* add notes
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-03 11:15:23 +08:00
63998c1747
expression: fix NaN for vec expression ( #19482 )
...
* fix NaN for vec expression
* update test
* check result null
* check result null
* Update mydecimal.go
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: goroutine <ngaut@users.noreply.github.com >
Co-authored-by: Zhang Jian <zjsariel@gmail.com >
2020-09-02 09:42:30 +08:00
853e0b4929
expression: fix errors in Apply when the type of correlation column is bit ( #19331 )
...
* fix apply panic
* fixup
* fix CI
* fix CI
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-02 09:20:32 +08:00
9c2d7c2663
expression: allow function coercibility derive to DERIVATIO ... ( #19462 )
2020-09-01 21:46:41 +08:00
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
ba60cf5a69
charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation ( #18776 )
2020-08-27 23:20:48 +08:00
15ff461530
expression: set correct collation in InferType4ControlFuncs ( #19483 )
2020-08-27 16:52:55 +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
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
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
ed4004ac04
executor: fix apply with union scan and point batch point get ( #19128 )
2020-08-12 10:49:30 +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
4645c6582d
expression: check ErrTruncate/Overflow for CastRealAsDecimalSig ( #18961 )
2020-08-04 14:37:45 +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
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