Commit Graph

2251 Commits

Author SHA1 Message Date
6f250b625e *: fix a bug that collation is not handle for text type (#23045) 2021-03-03 22:04:54 +08:00
b5a9076aea *: new secondary index value format (#20220) 2021-03-03 21:16:54 +08:00
d6ee6d34d8 expression: fix err check (#22992) 2021-03-03 20:20:55 +08:00
642527d740 planner: choose non-prefix column when both index key and handle have the same one (#22980) 2021-03-01 20:48:54 +08:00
e2fdb00e62 config: fix data race caused by config.Labels (#22977) 2021-03-01 16:02:54 +08:00
bc37f088ba *: fix some varcheck lint warnings (#23011) 2021-03-01 15:10:54 +08:00
31c13d6e38 expression: fix bugs in builtinfunction ArithmeticMinusInt logic (#22426) 2021-02-26 13:00:54 +08:00
daf3337a43 oracle: make @@txn_scope only support local and global (#22784) 2021-02-25 15:26:03 +08:00
eea52f5f20 expression: correct constant propagation for collation (#22666)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-02-24 19:19:01 +08:00
3d372302c4 expression: add integration test for partition pruning (#22836)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-23 14:18:48 +08:00
001b34ea8d server, sessionctx: Support for the status command of MySQL Shell (#22752)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Co-authored-by: Morgan Tocker <tocker@gmail.com>
2021-02-23 12:56:48 +08:00
50607db18d expression: Optimize builtinArithmeticModRealSig and builtinGreatestDecimalSig using MergeNull method (#22418)
* optimize with mergenulls

* optimize with mergenulls

* remove unnecessary import

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-02-22 22:27:09 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
4f56ab07a2 expression: do not adjust int when it is null and compared year (#22821)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2021-02-20 14:43:16 +08:00
3ad7f40140 expression: Add warning info for exprs that can not be pushed to storage layer (#22713) 2021-02-20 10:41:57 +08:00
c9e85ec701 expression: refine performance of EXTRACT function (#22701) 2021-02-19 15:31:27 +08:00
8c2db1b935 expression: fix enum and set type expression in where clause (#22785)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2021-02-19 15:14:57 +08:00
a3a4a6c4da executor: add new format specifier(%# %@ %.) for str_to_date expression (#22790) 2021-02-19 14:57:27 +08:00
c9af430996 expression: speed up Column.VecEvalReal by using MergeNulls (#22191) 2021-02-17 21:02:39 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
355fdfee4b brie: update br pkg to latest master (#22528) 2021-01-28 23:49:45 +08:00
4658536793 expression: handle duration type infer in least and greatest (#22271)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-01-18 12:39:59 +08:00
xhe
289bc7e79c ddl: concurrent safe api for using rule bundles cache (#22035)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-01-13 10:58:58 +08:00
e3108df576 planner: do not cache prepared plan if optimization depends on mutable constant (#22349) 2021-01-12 11:11:59 +08:00
f2694209a8 expression: set collation function flen (#22084) 2021-01-11 12:34:58 +08:00
b8c91d14ef expression, executor: fix runtime panic in WEIGHT_STRING function when the length of binary is too large (#22251) 2021-01-11 11:47:27 +08:00
cdcb0ffa34 expression: fix unexpected panic when doing isNullRejected check (#22173) 2021-01-11 10:55:17 +08:00
2386702697 executor: fix data too long in union statement with select null and select varchar (#22183) 2021-01-06 13:34:35 +08:00
029eef87ed planner, expression: fix error when using IN combined with subquery (#22080) 2021-01-05 16:30:33 +08:00
7f9c716854 expression, ddl: check the argument count for the generated column (#22154)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-01-05 13:45:45 +08:00
7c81719568 types: refine JSON conversion, throw err when object/array convert to integer/float/decimal (#21826) 2021-01-04 18:48:23 +08:00
9cb4fb38d8 expression: return correct results for user variables of datetime type (#22078) 2021-01-04 11:26:14 +08:00
933e456beb executor: disallow split table region by null values (#20496) 2020-12-26 15:26:02 +08:00
3e2ff1d16c expression: fix different types compare error (#21338) 2020-12-25 16:50:11 +08:00
c3e54962d1 executor: fix a bug that can not insert null into a not null column in the empty SQL mode (#21237)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-25 11:44:00 +08:00
47ef48b854 planner/codec: fix issue of decode plan error cause by without escape special char (#21937)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-24 20:20:29 +08:00
db31b29d63 ddl: add the not expression check when creating a partition table (#21497) 2020-12-24 16:25:44 +08:00
d337bf4cd4 parser: update parser and add test for parse identifier (#21908) 2020-12-24 11:48:32 +08:00
4ec9b9c128 expression: fix functions format_bytes and format_nano_time incorrectly use varbinary (#15416) 2020-12-23 16:04:29 +08:00
e172656e37 expression: fix comparing json with string (#21903) 2020-12-23 11:54:17 +08:00
49791bc3f5 expression: do not rewrite like to = if new collation is enabled (#21893) 2020-12-23 10:53:30 +08:00
01a39ae671 expression: fix wrong type inferring for ceiling function. (#21920) 2020-12-22 17:03:59 +08:00
d44e123395 planner: prevent agg push down if it is in the outer child of apply (#21902) 2020-12-22 16:43:26 +08:00
56d3f6b471 executor: support forbiding cross dc read for pointGet (#21840) 2020-12-22 15:31:31 +08:00
dd0dc46d5e expression: fix type infer for tidb's builtin compare(least and greatest) (#21150)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2020-12-22 14:58:31 +08:00
e8fb3eab2c expression: modify the mean result of time type (#21514) 2020-12-21 17:51:31 +08:00
ce5ce53fa9 ddl, distsql: Support forbiding cross txnScope query all *Reader Executor (#21650) 2020-12-21 15:30:30 +08:00
5cb50070bd planner: fix union doesn't handle collate correctly (#21854)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-21 15:06:33 +08:00
b232a23e7a expression, types: fix datetime and year comparison error (#20233) 2020-12-18 17:19:30 +08:00
25a94e5f2c expression:truncate decimal value instead of return error (#21691) 2020-12-18 13:46:05 +08:00