Commit Graph

43 Commits

Author SHA1 Message Date
5e0a4f1db3 expression: return null when cast to huge binary type (#8768) 2018-12-29 17:16:46 +08:00
3febc22811 expression: fix cast json to decimal bug. (#8030) 2018-10-29 17:02:32 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
bca8c2709f expression: fix cast unsigned integer to decimal (#7792) 2018-09-27 17:18:46 +08:00
40a4a2dfe8 fix compatibility bug with convert string to int return wrong result (#7483) 2018-08-31 14:47:01 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
a8012590dc *: fix union result when mix signed/unsigned columns (#7112) 2018-07-30 13:48:44 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
3299f860ff *: use chunk.Row instead of types.DatumRow in test files (#7139) 2018-07-24 21:45:33 +08:00
99aba76c90 *: Make 'IF NOT EXISTS' great again in 'CREATE TABLE IF NOT EXISTS LIKE' syntax (#6896) 2018-06-26 12:24:57 +08:00
5efab55a27 expression: Do not wrap a 'CAST As JSON' when input is already a JSON (#6678) 2018-06-07 11:10:50 +08:00
a239b772ba expression: fix test cases in TestWrapWithCastAsTime and TestCompareBuiltin (#6024)
Those test cases use wrong timezone, they will fail when TimeZone set to Tokyo
and time.Now() is 01:04
2018-03-12 13:33:07 +08:00
0dc2d902ce expression: fix a test case that use inconsistent time zone (#5872)
In TestCastFuncSig function, the test use Local time zone,
but the result expect UTC
2018-02-12 13:15:53 +08:00
469b246965 types,expression: make ConvertToTime unaffected by location (#5741) 2018-02-01 06:22:59 -06:00
fc6376981d *: remove GetSessionVars() in expression evaluation (#5683) 2018-01-22 11:04:32 +08:00
5db9ac2506 types,util/chunk: refactor Time for Chunk. (#5571) 2018-01-09 10:12:27 +08:00
07dc46d3cb expression: refactor hybrid type expressions (#5550) 2018-01-06 11:04:50 +08:00
970e5b5684 *: replace JSON with BinaryJSON (#5460) 2017-12-21 15:20:17 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
e11c4fbaad expression, plan: improve fold constant (#4721)
* improve fold constant

* remove useless code

* remove useless argument

* address comment
2017-10-09 17:43:13 +08:00
b4ad894b0a expression, plan: do come code clean and make golint happy (#4681) 2017-09-29 10:35:47 +08:00
baee1bb864 expression, types, plan: remove the usage of "TypeClass" completely (#4654) 2017-09-27 12:39:44 +08:00
f89db5b6ec expression, types: export "evalTp" to "EvalType" and move it to package "types" (#4626)
* expression, types: export "evalTp" to "EvalType" and move it to package "types"

* add source file

* change "ETJSON" to "ETJson"
2017-09-26 11:25:27 +08:00
069cc8b222 expression: open new expression framework by default (#4595) 2017-09-22 15:29:42 +08:00
959db2b835 *: rewrite builtin function GREATEST, LEAST (#4476) 2017-09-13 18:44:09 +08:00
d585abb2c1 expression: add timezone for CastAsTime (#4465) 2017-09-08 00:01:08 +08:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
f02a615bed expression: remove useless error return (#4347) 2017-08-28 20:34:30 +08:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00
d0dcb5b0a6 expression, parser: fix issue #3691, cast compatibility (#3894) 2017-08-01 16:47:38 +08:00
85b0155f85 expression: fix EvaluateExprWithNull when meet cast(#3873) (#3875) 2017-07-25 21:16:34 +08:00
d35acbdf08 types: Fix insert error when column length is zero (#3849) 2017-07-25 18:59:38 +08:00
edb9110a7c *: CoerceDatum should deal with truncate error internally (#3799) 2017-07-20 16:46:06 +08:00
35d2ca006a expression, parser: simplify the type inferer of builtin funcs (#3617) 2017-07-06 16:18:40 +08:00
6f1bc82bc0 expression: wrap arguments when new built-in function (#3520) 2017-06-22 11:56:24 +08:00
3e7657737b expression, util: consider unsigned when cast (#3457) 2017-06-16 22:39:19 +08:00
895a35415d expression: implement wrap Expression with cast functions (#3419) 2017-06-09 17:27:02 +08:00
1686ca7dc1 expression, util: improve cast function signatures (#3387) 2017-06-07 17:25:09 +08:00
063dbd0e41 store/tikv: use grpc (#3390) 2017-06-05 18:10:20 +08:00
ea9ce9c0fa *: fix issue3356 (#3357) 2017-06-01 23:53:45 +08:00
fb75f5a1c6 expression, util: implement new cast built-in function signatures (#3266) 2017-05-23 15:43:52 +08:00