Commit Graph

47 Commits

Author SHA1 Message Date
d5a0e6a1d3 *: fix errcheck (#24463) 2021-05-13 11:31:39 +08:00
b0dfa746bf *: fix gosimple check (#24460) 2021-05-10 12:56:43 +08:00
6a0cd8e093 types/json: replace binary.Read with binary.BigEndian.Uint16 (#23845) 2021-04-06 10:35:24 +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
43d9293be8 types, expression, codec: agg JSON values (#21656) 2020-12-11 17:31:52 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
2b05ffd6e8 expression: cast json_extract as bool (#18948)
* fix mocktikv json expression

* fix issue 12233

* remove MysqlJSONS function

* add test case and fix literal to bool

* go fmt

* add more test case

* update test case
2020-08-07 16:53:48 +08:00
7fc1ca3174 types/json: fix JSON comparison for int and float (#17622) 2020-06-05 16:05:58 +08:00
7cc2c70041 expression: implement vectorized evaluation for `builtinJSONSe… (#15859) 2020-04-15 10:38:01 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
ac8caad243 json: do not escape html special values (#14518) 2020-02-05 11:52:25 +08:00
ebc6a2d39d *: add builtin aggregate function json_objectagg (#11154) 2020-02-04 21:41:55 +08:00
ef7adeb50d *: resort fields for reducing the memory allocated (#14172) 2019-12-23 17:10:09 +08:00
6b6a6982b4 expression: refactor JSON_QUOTE / JSON_UNQUOTE (#13688) 2019-12-05 11:23:31 +08:00
018d3c3be2 *: fix staticcheck errors in folder types (#13773) 2019-12-04 12:38:42 +08:00
e415ced76e types/json: fix an over-quoted bug in BinaryJSON.Unquote function (#11934) 2019-08-30 17:18:35 +08:00
d47f1687f3 expression: add built-in function json_array_insert (#11076) 2019-07-08 14:54:56 +08:00
bb01a5f55c fix invalid json (#10510) 2019-06-06 13:52:09 +08:00
a594287e9f expression/json: add builtin function JSON_SEARCH (#8704) 2019-04-18 19:48:01 +08:00
1c21151b11 types,types/json: improve test coverage (#9977) 2019-04-09 13:29:42 +08:00
63eb329e52 types: improve test coverage in types/json (#9697) 2019-03-18 13:56:28 +08:00
469fa877d6 util/hack: define a MutableString type for function hack.String (#9230) 2019-02-12 12:30:40 +08:00
0b363f1712 expression: add builtin function JSON_QUOTE (#7832) 2019-02-12 10:57:09 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
1f46efe156 expression: add builtin function JSON_DEPTH (#8347) 2018-11-26 20:25:59 +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
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
708611d898 expression: add builtin json_keys (#7776) 2018-10-18 23:54:00 +08:00
9fd4072acb expression: add builtin function json_length (#7739) 2018-09-27 09:23:45 +08:00
115c345593 expression: fix incorrect uniquote json escapse (#7745) 2018-09-20 16:22:40 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
30ae420242 expression: support builtin function json_contains_path (#7596) 2018-09-09 12:32:15 +08:00
3f5bd3bb28 expression: support builtin function json_contains (#7443) 2018-09-07 12:45:13 +08:00
7f286f5c12 types: add one more space to make json pretty (#7389) 2018-08-16 11:04:39 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
544956bd54 types/json: remove old JSON type. (#5468) 2017-12-22 16:03:18 +08:00
970e5b5684 *: replace JSON with BinaryJSON (#5460) 2017-12-21 15:20:17 +08:00
c9dc477e40 types/json: add binary json functions (#5428) 2017-12-20 15:27:18 +08:00
8b4f84347b types/json: support binary json type. (#5404) 2017-12-15 20:14:32 +08:00
e362f1ed56 types: add deepcopy for update operation (#5098) 2017-11-15 14:46:24 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00