ab00d56628
support round function push down to TiFlash ( #19616 )
2020-09-11 12:46:29 +08:00
c7a836b609
ddl: support create table with expression index ( #18125 )
...
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* fix
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* add
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* save
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* Update ddl/ddl_api.go
Co-authored-by: Lynn <zimu_xia@126.com >
* 2
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* fix
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
Co-authored-by: Lynn <zimu_xia@126.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-10 15:26:15 +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
0e26d40948
distsql: fix wrong default max allowed packet ( #19573 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-08 15:35:53 +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
ebb5573869
expression: remove the ambiguous error message of unix_time ... ( #19707 )
2020-09-03 23:53:08 +08:00
9c344ce66e
types: fix bug of converting enum and set ( #19699 )
2020-09-03 23:43:49 +08:00
0338bce029
expression: fix unmatched column lengths errors caused by builtinGreatestStringSig and builtinLeastStringSig ( #19754 )
2020-09-03 16:22:43 +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
1cab3d5947
*: fix bug of same type plans with different plan digest ( #19519 )
2020-09-01 21:55:20 +08:00
9c2d7c2663
expression: allow function coercibility derive to DERIVATIO ... ( #19462 )
2020-09-01 21:46:41 +08:00
9047a9c881
executor: fix wrong behavior for max/min on ENUM/SET column ( #19552 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Yiding Cui <winoros@gmail.com >
2020-09-01 21:18:03 +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
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
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
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