Commit Graph

351 Commits

Author SHA1 Message Date
550ca8eaeb statistics: enables global-level stats to be generated in fast analyze mode (#22931) 2021-03-01 16:40:50 +08:00
31c13d6e38 expression: fix bugs in builtinfunction ArithmeticMinusInt logic (#22426) 2021-02-26 13:00:54 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
a3a4a6c4da executor: add new format specifier(%# %@ %.) for str_to_date expression (#22790) 2021-02-19 14:57:27 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
17a65ab98b statistics: refactor the statistics package use the RestrictedSQLExecutor API (#22636) 2021-02-03 13:28:57 +08:00
ca93c7fc16 types: convert string to MySQL BIT correctly (#21310) 2021-01-18 12:17:58 +08:00
d1d5cc433e time: fix parse datetime won't truncate the reluctant string (#22232) 2021-01-07 14:52:16 +08:00
c7165bc518 executor, planner: ON DUPLICATE UPDATE can refer to un-project col (#14412)
Co-authored-by: Kenan Yao <cauchy1992@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-06 19:03:51 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +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
b112c3c9a3 types: Add a limitation about float data type (#20929) 2020-12-23 16:47:59 +08:00
0370fbf6a3 types: Regard TypeNewDecimal as not a hasVariantFieldLength type. (#21849) 2020-12-23 12:59:48 +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
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
b25f62dce6 expression: fix compatibility behaviors in time_format with MySQL (#21559) 2020-12-17 15:16:57 +08:00
608cc51d27 types: report error for json object with key length >= 65536 (#21779) 2020-12-16 16:53:35 +08:00
b0d9934fb0 types: fix compare float64 with float64 in json (#21709)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-15 12:12:55 +08:00
dfbb69d33d types: fix compare object json type (#21703)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-14 17:55:54 +08:00
06cd92e05f types, expression: handle uint64 correctly in JSON (#21621) 2020-12-12 21:45:12 +08:00
6f3f126dee types: fix restore error for backslash (#21666)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-11 18:27:21 +08:00
43d9293be8 types, expression, codec: agg JSON values (#21656) 2020-12-11 17:31:52 +08:00
f0c6fa9c25 expression: fix compatibility of extract day_time unit functions (#21601)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-11 17:13:21 +08:00
579022cdf3 expression, types: fix unexpected result from TIME() when fsp digits > 6 (#21652) 2020-12-11 16:47:52 +08:00
8a3705ee40 expression: change the round rule for approximate value to round to nearest even (#21324) 2020-12-10 11:34:52 +08:00
3b1e1027fd expression, json: fix converting from string to decimal (#21592) 2020-12-09 17:23:20 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
0c3c4c588a *: Let binary literal can be convert to enum and set (#20789) 2020-12-02 20:15:18 +08:00
83c1652633 expression, executor: allow insert strings with overflowed trailing spaces (#20987) 2020-11-24 18:06:16 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
4897ecdba2 planner, type: fix AggFieldType error when encouter unsigned and sign type (#21062) 2020-11-24 11:33:24 +08:00
49a1527893 expression: adjust int constant when compare with year type (#21099) 2020-11-19 19:04:53 +08:00
99bdecc966 ddl: fix float precision larger than 53 (#20458) 2020-11-13 14:08:36 +08:00
a81c89f89b ddl: support column type change from date time type to other types (#20778) 2020-11-12 19:06:42 +08:00
ef57bdbbb0 *: fix somes bugs related to the clustered index and the new collation (#20934) 2020-11-12 15:18:15 +08:00
e608e4bca9 ddl: fix the enum's default value where create table (#20849) 2020-11-11 20:18:17 +08:00
7ab3649256 executor, types: fix skipped replace when the value is treated as the same in CI collations (#20858) 2020-11-11 19:38:23 +08:00
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
dy
cc0bef82b7 util, types: fix overflow & adjustment for the year type in index ranger (#20338) 2020-11-06 17:14:54 +08:00
c243a0b8ce expression: fix ADD_DATE daylight saving time change (#20871) 2020-11-06 11:40:01 +08:00
feab4cb9b8 executor: fix skipped update when the value is treated as the same in CI collations (#20786) 2020-11-04 17:07:16 +08:00
6785ae626a ddl: support column type change from numeric to other types (#20729) 2020-11-04 14:43:34 +08:00
480a45acee ddl: refine reorg warnings receiving logic (#20707)
Signed-off-by: AilinKid <314806019@qq.com>
2020-11-03 21:18:01 +08:00
c9d7089d86 ddl: add charset info in show create table if column is generated (#20347) 2020-11-03 15:56:53 +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
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