a168f413ba
executor: reduce memory usage and GC overhead for hash join. ( #2957 )
...
Implemented and use MVMap to reduce GC overhead and memory usage for hash join.
2017-03-30 23:04:02 +08:00
d87afa1014
types: Add missing TypeNewDate in ConvertTo ( #2962 )
2017-03-30 14:39:11 +08:00
78f7eab61d
*: refactor distsql and executor. ( #2942 )
2017-03-29 15:20:25 +08:00
9f17a88377
fix some typo in comments ( #2943 )
2017-03-29 08:55:49 +08:00
0783456c78
*: do not use bytespool to allocate coprocessor response. ( #2891 )
2017-03-22 00:00:00 +08:00
d215257ea9
ddl: set collate if not set.
...
Should set column collate to default one if charset is set but collation is not set.
2017-03-21 19:52:03 +08:00
f380c1f315
* fix a typo in line 61 ( #2871 )
...
from "// f hold"
to "// x hold"
2017-03-18 11:47:49 +08:00
a4dde03983
distsql: avoid ReadAll allocation. ( #2813 )
2017-03-15 23:51:11 +08:00
8eec966d84
fix a typo ( #2814 )
...
fix a typo from 'convertion' to 'conversion' in line 24
2017-03-12 05:46:22 -05:00
b8b84dde30
util/types: convertToMysqlTime will truncate hh:mm:ss part for Date type ( #2808 )
2017-03-10 19:45:15 +08:00
0a30e7e738
util/filesort: fix data race ( #2799 )
2017-03-09 10:21:35 +08:00
2d7a8ac0c0
util/filesort: Make sorting async ( #2732 )
2017-03-08 20:48:27 +08:00
fdf32c4639
plan, types: add type class, infer coalesce. ( #2788 )
...
The implementation reference MySQL's source code.
`TypeClass` corresponds to `Item_result` in MySQL.
2017-03-08 14:51:13 +08:00
0391820318
experssion: implement MD5 builtin function ( #2780 )
...
* experssion: implement MD5 builtin function
2017-03-05 02:58:47 -06:00
87d39986fe
*: show processlist ( #2744 )
2017-03-01 14:39:13 +08:00
a2f2e3f40a
tidb,store/tikv: use special session to execute ExecRestrictedSQL ( #2687 )
2017-02-22 15:08:17 +08:00
4f95252ab0
*: add Cancel method for tidb.Session, Canceled for context.Context ( #2636 )
2017-02-22 12:56:20 +08:00
6859d121b9
txn:improvement for point get by unique key or pk ( #2631 )
2017-02-20 22:39:36 +08:00
43c73b7caa
util/types: fix bug when truncating string values. ( #2686 )
2017-02-20 20:35:47 +08:00
846b267b46
util/types: ignore string truncate error. ( #2685 )
2017-02-20 19:51:08 +08:00
2f07f7141d
*: Support basic aes_encrypt/aes_decrypt function. ( #2640 )
2017-02-16 14:03:44 +08:00
3aa6be2bb1
plan/typeinferer: refine type inferer of builtin func greatest/least ( #2628 )
2017-02-14 18:28:54 +08:00
8ba5d9ee2a
*: avoid using TypeDecimal ( #2619 )
...
TypeDecimal is misleading, it is not used as Decimal type, it's an unspecified type.
2017-02-10 10:53:05 +08:00
be2812f9c3
Fixed 386 build ( #2591 )
...
* Fixed 386 build again
2017-02-09 20:46:22 -06:00
1d17824890
plan/typeinferer: fix a bug when mathematic expression contains datetime or duration operands ( #2610 )
2017-02-10 09:48:58 +08:00
f5fac14afb
util/sqlexec: introduce a SQLExecutor interface and use it ( #2618 )
...
This tiny change also fix a bug that privilege background session never commit
2017-02-09 16:44:15 +08:00
15d2065287
Support builtin function timestamp ( #2498 )
2017-02-05 13:06:27 +08:00
26d54c8866
expression,util/stringutil: move LIKE pattern match to stringutil package ( #2548 )
2017-01-25 22:28:36 +08:00
21e21c4a3c
*: move the code of distinct logic. ( #2539 )
2017-01-23 20:43:47 +08:00
5aec72ce81
expression,plan: fix some issues of ROUND func ( #2461 )
2017-01-22 11:35:26 +08:00
9313558fea
util/filesort: sort rows using file sort. ( #2377 )
2017-01-15 01:16:41 +08:00
3bfac81a4e
*: add builtin function FROM_DAYS ( #2434 )
2017-01-15 01:10:47 +08:00
849071221c
Wrong behavior when executing alter table t add index c (c(3)); ( #2432 ) ( #2441 )
2017-01-11 18:25:57 +08:00
0eaef417e8
type/util: add functions mixDateAndTime and getDateFromDaynr ( #2407 )
2017-01-11 11:00:35 +08:00
293988b436
*: Fix a bug when binary literal has a charset prefix ( #2438 )
2017-01-11 10:16:51 +08:00
5969e9ecad
*: add builtin function TIMESTAMPDIFF ( #2386 )
2017-01-11 00:12:48 +08:00
1b72b11ffa
util/types: fix truncate float ( #2405 )
2017-01-06 17:14:04 +08:00
cd98c551b4
util/types: handle ParseDatetime overflow properly ( #2401 )
2017-01-06 14:36:08 +08:00
ac06325a1d
*: add builtin function DATEDIFF ( #2374 )
2017-01-06 10:01:20 +08:00
39a7b90e7f
types: optimize floatStrToIntStr ( #2396 )
2017-01-05 16:06:47 +08:00
36e9570051
*: concurrently begin a transaction and compile ( #2393 )
2017-01-05 15:00:43 +08:00
a44d9c3891
*: add builtin function UNIX_TIMESTAMP ( #2369 )
2017-01-05 14:09:21 +08:00
c8cc389fdc
ddl: bug in columnDefToCol, Length shouldn't be set for unspecified fields. ( #2381 ) ( #2382 )
2017-01-05 12:04:21 +08:00
27f5f287f7
expression: move types.helper to expression pkg. ( #2371 )
2017-01-02 10:50:41 +08:00
ebbbf8993b
ddl: speed up create table without the need to change lease. ( #2332 )
...
DDLs that doesn't modify rows like create/drop/truncate table, create/drop database
do not need to wait 2 lease on ddl worker, we can safely remove those wait to
speed up DDL.
But user may create a table, then insert data on that table on another TiDB server,
So we need to wait in session.
User can set a session variable to skip DDL wait if needed, and there is no risk of
data inconsistency.
This solution remove the need for user to set lease to zero when loading data,
It's much more safe and easy to use.
2016-12-28 22:08:19 +08:00
b5e9cc5a7b
util/types: fix get valid float ( #2337 )
...
The valid float prefix of "11e1.3" should be "11e1".
2016-12-28 16:40:35 +08:00
5e60397887
util/types: log timestamp error ( #2336 )
2016-12-28 16:01:10 +08:00
305bb6c643
util/types: StrToDate support more format control ( #2310 )
2016-12-26 22:56:13 +08:00
64484a4257
*: refactor context.Context ( #2298 )
...
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
cfb100541a
evaluator,util/types: clean up builtinDateFormat ( #2292 )
...
rename Time method Format to DateFormat
clean up builtinDateFormat in evaluator
clean up ToNumber use DateFormat method
2016-12-22 14:20:37 +08:00