Commit Graph

2121 Commits

Author SHA1 Message Date
aa2b83210d planner: make pushdown limit use its child schema (#20807) 2020-11-04 15:58:34 +08:00
a53c1d05b1 expression: Support some cast functions push down to TiFlash (#20787) 2020-11-04 15:21:01 +08:00
42590965ed *: refactor CompilePattern and DoMatch used by like (#20610) 2020-11-04 13:25:52 +08:00
f1c464a86a collation: add utf8mb4_zh_pinyin_tidb_as_cs collation interface (#20504) 2020-11-03 11:35:39 +08:00
e102c12479 planner, config: Enable plan cache by default (#20416) 2020-10-29 23:00:26 +08:00
ccd48eeb4d expression: make str_to_date() more compatible with MySQL (#20298) 2020-10-28 19:06:25 +08:00
bf043c2d1f executor, expression: Fixed the warning messages when calling str_to_date function failed (#20415) 2020-10-28 14:04:01 +08:00
fd84a91895 ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit (#20550) 2020-10-28 11:48:34 +08:00
e3c3668a27 *: fix not precedence in generated column (#20612) 2020-10-27 17:59:35 +08:00
23d8b30470 expression, executor: add iso 8601 and timezone support for temporal string literal (#20534) 2020-10-27 16:24:59 +08:00
3db90e4256 types: fix incompatible result of DATE_ADD() (#19880) 2020-10-26 11:10:14 +08:00
66b241e440 planner: correlated column with unique constraint can help to eliminate MaxOneRow (#20259)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-10-22 17:02:28 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
743a910cd9 planner: fix the panic when the argument of agg func is scalarfunction in apply (#20485) 2020-10-16 14:58:16 +08:00
da70410fd3 ddl: Supports transitions between the same type (String types) (#20032) 2020-10-16 11:55:43 +08:00
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
a8c5532df0 expression: fix schema may change when execute DML statement (#20331) 2020-10-12 12:09:12 +08:00
462a53f79a expression: utilize the flag of column arguments to simplify expressions (#20149) 2020-10-09 14:43:11 +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
4ff2f926e2 executor, expression: set the evalType of hybrid type as ETInt in VecEvalBool (#20221) 2020-09-27 11:31:16 +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
aceecf0732 executor: support new aggregate funtion APPROX_PERCENTILE (#19799)
Signed-off-by: leiysky <leiysky@outlook.com>
2020-09-24 15:59:38 +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
e880cae491 planner: reimplement DEFAULT function to make the behavior consistent with MySQL when looking up the corresponding column (#19709) 2020-09-18 19:40:12 +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
f9e5a92857 expression: use %q replace \"%s\" (#20043) 2020-09-17 19:43:38 +08:00
73e03c75e6 ddl: check constraint when alter enum/set type column (#19806) 2020-09-17 09:52:14 +08:00
205c40186a *: support aggregate function stddev_samp() and var_samp() (#19810)
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-16 17:44:41 +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
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