Commit Graph

79 Commits

Author SHA1 Message Date
b4b52234cc expression: quote json path if necessarily (#37375)
close pingcap/tidb#25579
2022-08-25 17:02:21 +08:00
cdf4bc9bea expression: implement comparison between json opaque (#37316)
close pingcap/tidb#37315
2022-08-24 11:08:20 +08:00
11dbd0b881 *: update bazel config (#37313) 2022-08-23 17:40:20 +08:00
fe40d3ce27 expression: add json opaque value (#37200)
close pingcap/tidb#9996, close pingcap/tidb#31918
2022-08-23 12:26:20 +08:00
cf69205919 expression: refactor json path syntax and make it compatible with mysql (#37074)
ref pingcap/tidb#37133
2022-08-23 11:14:20 +08:00
35e64651d0 expression: remove duplicate element in json_extract function result (#37118)
ref pingcap/tidb#37133
2022-08-16 15:42:51 +08:00
d6d0ce7b10 *: gofmt code for adapting go 1.19 (#36832)
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
bf743a6ca0 *: enable flaky test for all test (#36385)
close pingcap/tidb#36404
2022-07-22 15:35:09 +08:00
911e7cc360 *: enable revive (#35970)
ref pingcap/tidb#35345
2022-07-15 16:03:06 +08:00
fa00fc5cd5 *: set fine grain timeout and update bazel config (#36220) 2022-07-15 11:11:05 +08:00
55aea2787d *: use pdqsort to improve sort performance (#34404)
close pingcap/tidb#34250
2022-07-06 13:41:02 +08:00
e00ad2b3ef *: enable errcheck for nogo (#35704)
ref pingcap/tidb#35345
2022-07-02 22:08:39 +08:00
b18ee068e4 types: cache pathExpression to improve the JSON function performance (#35860)
close pingcap/tidb#35859
2022-07-01 14:48:39 +08:00
ed5e63a7a0 types: fix incompatible implementation of jsonpath extraction (#35320)
close pingcap/tidb#30352
2022-06-28 18:26:39 +08:00
2b4a4c6d7a *: support bazel (#33691)
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
810f8ae12e *: remove pingcap/check dependency (#34734)
close pingcap/tidb#28328
2022-05-17 21:38:37 +08:00
6b2e37f18c gomod: update dependency for golang1.18 (#33053)
ref pingcap/tidb#32874
2022-03-17 15:10:31 +08:00
7c56706622 *: support predeclared golangci-lint linter (#32066)
close pingcap/tidb#30733
2022-02-14 10:35:38 +08:00
9ffeff2857 types: convert to new charset before inserting to blob or json column (#31031)
close pingcap/tidb#30690
2021-12-30 21:35:50 +08:00
3de13842b3 test: control log level with environment variables (#30871) 2021-12-24 17:03:48 +08:00
a8ad203f9f executor: fix regular expression in json so that it could match identifer start with '$' (#29750) 2021-12-14 18:38:35 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
7746b6b70a test: fix incorrect regexp pattern during migrating test (#30080) 2021-12-02 05:51:53 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
74c507b023 test: fix t.Parallel() is called in the range method but is not reinitialised (#27939) 2021-09-17 11:30:42 +08:00
9fb775a360 types/json: fix comment error to ignore goword error (#27621) 2021-08-27 08:36:04 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
853c41e3fb executor: add builtin aggregate function json_arrayagg (#19957) 2021-08-04 16:15:07 +08:00
e606342fbb types/json: migrate test-infra to testify (#26375) 2021-07-21 13:07:35 +08:00
372c529c16 expression: add builtin function `json_merge_patch` (#24711) 2021-07-10 13:13:31 +08:00
985d42c343 types: fix json_unquote (#25875) 2021-07-06 16:13:28 +08:00
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