25580ea5f4
*: Use a function to get the ONE, ZERO and NULL and fix the clone. ( #16512 )
2020-04-17 19:11:52 +08:00
7c39e5e5e0
expression: fix decimal of function FROM_UNIXTIME ( #14936 )
2020-03-10 21:36:02 +08:00
4a0f1861fa
expression: make TestNowAndUTCTimestamp more stable ( #15058 )
2020-03-04 00:12:39 +08:00
41142266b2
*: use SetString() for string instead of SetBytes() ( #14989 )
2020-03-02 15:48:10 +08:00
eb12799152
*: Collation should be set accordingly when setting string datum ( #14757 )
2020-02-20 23:01:53 +08:00
3a255c5518
*: fix unit tests on the windows platform ( #14826 )
2020-02-18 15:23:17 +08:00
9543a0f4a6
*: re-implement partition pruning for better performance ( #14679 )
2020-02-14 19:18:49 +08:00
87bbe7dcbe
types: Fix duration parser ( #14588 )
...
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com >
2020-02-07 14:30:44 +08:00
9d38c5467a
*: use 8 byte MysqlTime format ( #14278 )
2020-01-31 14:49:06 +08:00
a7076a5263
expression: optimize unit test ( #14503 )
2020-01-17 17:53:59 +08:00
d006443194
type: encapsulate Time API ( #14288 )
2019-12-31 12:41:09 +08:00
77d189b752
expression: implement vectorized evaluation for builtinSysDateWithFspSig ( #13332 )
2019-11-16 06:53:44 -06:00
611646770a
expression: fix unit test for builtinSysDateWithoutFspSig ( #13425 )
2019-11-15 17:39:23 +08:00
5d5497bfeb
expression: speed up unit tests under the expression package ( #12887 )
2019-10-23 03:56:31 -05:00
adb3071c90
*: refine the attribute definition of types.Time and types.Dur… ( #11672 )
2019-08-14 11:30:40 +08:00
ff71c0c746
expression: fix last_day incompatible with mysql ( #11704 )
2019-08-10 19:12:38 +08:00
768f61f52f
expression: handle builtin time getInterval from Decimal\Real ( #11479 )
...
All tests passed, auto merged by Bot
2019-07-30 17:16:52 +08:00
5c35082f6a
expression: handle builtin add_date/sub_date func overflow ( #11472 )
2019-07-27 18:22:21 +08:00
be431dad25
make time func now related unit tests stable ( #11412 )
2019-07-24 16:33:29 +08:00
ca70d74a28
executor, expression: fix current_timestamp/now not consistent… ( #11342 )
2019-07-23 17:02:24 +08:00
d977edf8a3
Function SUBTIME ADDTIME should return NULL with a warning if… ( #11262 )
2019-07-19 19:49:40 +08:00
8d2c9be461
CONVERT_TZ should return NULL if its arguments are invalid. ( #11176 )
2019-07-12 16:33:01 +08:00
785922d923
expression: fix the behavior of DATE_SUB ( #10607 )
2019-06-13 20:36:35 +08:00
7deedf8418
expression: fix issue that period_diff is not compatible with MySQL 8.0 ( #10383 )
2019-05-14 17:40:54 +08:00
6a3a73a52d
*: add_date can return mysql.Time ( #9830 )
2019-05-14 10:06:10 +08:00
37e824134f
expression: check if period is valid in period_add ( #10380 )
2019-05-09 11:11:02 +08:00
2133b06541
expression: fix cast(-num as datetime) to return null instead of error ( #10368 )
2019-05-08 16:58:18 +08:00
826c2991b5
handle unsigned hour overflow ( #10074 )
2019-04-09 16:46:51 +08:00
b4cc3e4893
fix str_to_date func compatible issues 9773 ( #9819 )
2019-03-21 15:00:29 +08:00
9187e3d9e5
Fix last_day function ( #9746 )
2019-03-15 15:31:13 +08:00
b76b2da8f6
types: fix incompatible issue for builtin function str_to_date ( #9693 )
2019-03-14 13:04:44 +08:00
133a1ee8f8
expression: fix week func format ( #9685 )
2019-03-13 15:25:11 +08:00
7072052316
expression,types: improve str_to_date builtin function compatibility ( #9617 )
2019-03-09 15:15:31 +08:00
eb2578bc42
expression: fix date_add interval month,year diffs from mysql ( #8988 )
2019-02-11 19:52:58 +08:00
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +08:00
6e27de255b
expression: fix incorrect date arithmitical with negative interval ( #8523 )
2018-12-04 10:34:47 +08:00
2f6639d12b
expression: add builtin function tidb_parse_tso ( #8385 )
2018-11-28 22:37:44 +08:00
5374ff8935
expression,planner: support non-deterministic functions (e.g., now) in the plan cache ( #8105 )
2018-11-01 23:53:32 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
9ec7515743
*: Add few error checks in tests, clean error messages and fix a misspell ( #8101 )
2018-10-31 18:50:43 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
29441950a3
*: write system timezone into mysql.tidb in bootstrap stage. ( #7638 )
2018-09-14 22:15:00 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
6fb1a637fb
expression: Fix some datetime related cases that is inconsistent with MySQL ( #7636 )
2018-09-07 14:38:43 +08:00
8f1b494055
expression: fix missing microsecond for timestamp ( #7418 )
2018-08-17 14:40:49 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
7c18d24933
executor, store: fixed daylight saving time issue ( #6823 )
...
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md ) document **BEFORE** filing this PR.
## What have you changed? (mandatory)
During coprocessor dag task, it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package.
I change `timeZoneOffset` to `zone` and add second return parameter `name string`. The intentioned of doing this to adopt the convention of `time` package.
For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`.
## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)
## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
877d0d4d3d
*: fix a bug occurred when insert into time column ( #6451 )
...
* *: fix a bug when insert decimal or decimal-like string into time col
2018-05-09 10:52:30 +08:00