Commit Graph

163 Commits

Author SHA1 Message Date
c382b9b01e executor: hash join out of index panic when enum column value is zero (#23162) 2021-03-10 12:18:54 +08:00
31df40b9bc statistics: add some test cases of global-stats to cover more column types (#23138) 2021-03-08 14:10:54 +08:00
33c82d1371 util: fix err check (#23009) 2021-03-03 21:48:55 +08:00
ac17ae982a util/codec: add error handling to NewCommonHandle() to avoid panic (#22458) 2021-01-21 16:44:59 +08:00
e9b11b72a3 util: fix bad number error with DISTINCT when dividing long decimals (#21783) 2020-12-18 16:29:35 +08:00
43d9293be8 types, expression, codec: agg JSON values (#21656) 2020-12-11 17:31:52 +08:00
dfc3bbdee6 util, executor: parse set value correctly in HashChunkRow (#21048) 2020-11-16 14:51:26 +08:00
3903c6b8b5 statistics: fix the display of bounds for indexes with date/time columns. (#19961) 2020-09-17 19:01:26 +08:00
ba60cf5a69 charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation (#18776) 2020-08-27 23:20:48 +08:00
5184a0d706 executor: fix the bug: can not join if join keys are type bigint and type bit (#19032)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 19:44:48 +08:00
c7dcf9c542 util: fix a encode bug causes the wrong result of hashJoin with set and enum (#18855)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-07-29 14:12:10 +08:00
f3554241bb planner, executor: support except and intersect set operator (#18459)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-27 17:56:07 +08:00
127ad504b2 table: optimize add record used in lightning (#18102) 2020-06-24 15:18:01 +08:00
a1763c1b6e executor: fix memory corrupt in COUNT/JSON_OBJECTAGG/GROUP_CONCAT (#17106) 2020-05-13 16:58:20 +08:00
dd4f2405bd codec: improve the coverage of key path in codec (#17023) 2020-05-11 11:11:38 +08:00
dec9371d8a executor: fix building hash table with TypeNull when join (#15913) 2020-04-01 21:18:58 +08:00
af787a3acf util: consider negative zero float for Hash Join (#15837) 2020-03-30 17:39:12 +08:00
5e8706a1f6 util/collate: remove CollatorOption (#15472)
`CollatorOption` was used to specify the `PadLen` which aims to support
"PADDING" attribute of the collations. But now it is not needed anymore,
since TiDB actually implements "PADDING" by removing trailing spaces.
2020-03-19 15:16:29 +08:00
892dcedf34 util/codec: add EncodedBytesLength (#15170) 2020-03-15 11:28:53 +08:00
8835f8efca *: set charset and collate for string literals correctly (#15156) 2020-03-06 17:01:46 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
332cef97f5 *: support index encode/decode for new collation (#14876) 2020-02-27 11:33:33 +08:00
848dd01b98 executor: consider the collation in vecGroupChecker (#14859) 2020-02-21 14:10:30 +08:00
d0e6aed1f1 executor: consider collations when calculating hash values in HashJoin (#14836) 2020-02-19 19:49:28 +08:00
1437d7e65b expression: open push down switcher for part of CAST functions (#13837)
Signed-off-by: Lonng <heng@lonng.org>
2020-01-02 11:43:43 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
4d4678a4dd types: Fix potential timezone related bugs caused by gotime.Local (#13833) 2019-12-20 22:38:25 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
5c521c8e43 executor: vectorized calculation the key for the group by items in hash aggregation (#12729) 2019-11-12 17:00:00 +08:00
b697fac4ba expression: vectorize hash calculation during probing (#12048) (#12669) 2019-11-05 21:42:34 +08:00
d29751ca5d executor: vectorize hash calculation in hashJoin (#12048) (#12076) 2019-09-11 16:06:46 +08:00
3fdfe2e370 stats: support display invalid key in stats buckets (#12064) 2019-09-09 17:59:11 +08:00
bdbaeb419d executor: decrease the memory usage of hashTable in HashJoinExec (#11832) 2019-08-29 14:45:52 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
0dc91069d8 table: avoid redundant encode in insert/update/delete. (#11532) 2019-08-07 10:16:48 +08:00
18724b950b codec: improve buffer reuse (#10801) 2019-07-23 21:22:24 +08:00
3df70a7c20 codec: pre-alloc encode buffer in row level (#11218) 2019-07-23 20:00:38 +08:00
1feac7b3df util/codec: improve package test code coverage above 85% (#10351) 2019-05-13 18:33:13 +08:00
e8d9a3f075 expression: check timezone when encoding timestamp datum (#10303) 2019-04-30 17:20:23 +08:00
27a56180bd *: replace gofail with the new failpoint implementation (#10184) 2019-04-22 13:30:14 +08:00
1c6315140a Speed up decoding column id (#10188)
* codec: speed up decoding column id by removing a redundant decoding of varint

* add a comment for skipped flag
2019-04-18 17:01:15 +08:00
a9de2093e5 util/codec, types: add new method to get comparable hash key from MyDecimal (#8930) 2019-01-11 11:01:15 +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
5baedaa21c expression, types: fix some corner case when parsing string to datetime (#7701) 2018-10-08 10:35:52 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
29addca221 stats: log detailed stats info for query feedback (#7293) 2018-08-15 22:01:44 +08:00
e5f26cdeaf types: fix a bug in decimal multiplication (#7208) 2018-07-31 22:15:27 +08:00