Commit Graph

8887 Commits

Author SHA1 Message Date
bbb70be448 executor: uncomment the BatchPointGet unit tests (#11962)
Signed-off-by: Lonng <heng@lonng.org>
2019-09-01 09:08:12 +08:00
bb84d1bdba planner: allow insert default into generated columns (#11901) 2019-08-30 17:45:40 +08:00
e415ced76e types/json: fix an over-quoted bug in BinaryJSON.Unquote function (#11934) 2019-08-30 17:18:35 +08:00
dc1f8ff031 planner: don't prune sleep function in LogicalProjection (#11927) 2019-08-30 16:35:06 +08:00
25e134cd6e ddl: fix add unique index on partitioned table (by RANGE COLUMNS) failed (#11946) 2019-08-30 16:01:06 +08:00
c07fcc4a34 executor: make the projection executor support vectorized expression evaluation (#11917) 2019-08-30 13:41:05 +08:00
fc739762c3 executor: refine the usage of expression blacklist (#11940) 2019-08-30 13:29:22 +08:00
90f3148ba5 planner: eliminate top level Sort in subquery (#11935) 2019-08-30 11:01:48 +09:00
3775b248c1 config: refine config file comment (#11933) 2019-08-29 19:21:05 +08:00
3de23f0f7c planner/core: support query block hint (#11861) 2019-08-29 19:14:38 +09:00
bdbaeb419d executor: decrease the memory usage of hashTable in HashJoinExec (#11832) 2019-08-29 14:45:52 +08:00
39f83c1220 planner: support predicate pushdown for Window (#11915) 2019-08-29 14:23:36 +08:00
a81f8e36a1 kv: replace memdb with a more memory efficient version (#11807) 2019-08-29 11:42:06 +08:00
ba4eb8fba5 *: add region read/write bytes info and approximate size/keys in show table regions result. (#11847) 2019-08-29 11:33:44 +08:00
8c5f4c766e store/mockstore/mocktikv: fix DATA RACE to make unit test stable (#11921)
Signed-off-by: Lonng <heng@lonng.org>
2019-08-28 23:35:16 +08:00
39aed0d29d planner: remove unnessary conversion and parenthesis (#11913)
Signed-off-by: Lonng <heng@lonng.org>
2019-08-28 22:18:45 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
ab8346e911 stats: limit the number of top-n items (#11906) 2019-08-28 17:23:08 +08:00
c59933323a expression: fix constItem() and column-pruning in order by clause (#11839) 2019-08-28 16:59:35 +08:00
d3fe398f54 some small typo fixes (#11899) 2019-08-28 16:32:34 +08:00
932c4a7bfc expression: improve length and decimal size when a base type add/minus/multiply a decimal (#11873) 2019-08-28 13:29:05 +08:00
a8026859d4 ddl: make ddl test more stable (#11897) 2019-08-28 12:46:35 +08:00
06342ddbe2 expression: make builtinCastIntAsInt support vectorized evaluation (#11826) 2019-08-28 12:00:35 +08:00
a62bee1034 store: add rateLimiter into txn commit batch actions (#11817) 2019-08-28 11:08:35 +08:00
62f1a54680 expression: remove row-vec convertor and introduce Vectorized() to check if an expression supports vectorized evaluation explicitly (#11884) 2019-08-27 20:16:35 +08:00
cc07b11082 executor: set the correct stmtCtx for explain statement (#11186) 2019-08-27 14:09:35 +08:00
e15e66b8e7 session: fix log slow log succ field (#11867) 2019-08-27 13:53:13 +08:00
4cd5d15d97 *: improve plan cache param eval and insert const (#10746) 2019-08-27 11:11:01 +08:00
b438bf21f6 expression: give the full error message when the result of calling the exp function is out of range (#11862) 2019-08-27 09:35:35 +08:00
d95a15ee3e server: fix start ts in slow log when transaction retrying (#11851) 2019-08-26 17:41:46 +08:00
46f1dc15f6 types: convert EOF error to ErrTruncate when parse duration (#11865)
* fix time_func

* check warnings
2019-08-26 17:36:55 +08:00
918137a7a4 main: add make coverage_server build option (#11844) 2019-08-26 16:05:43 +08:00
727d73670d kv, store: simpilify lazy condition pair (#11816) 2019-08-26 15:48:54 +08:00
59ea7460a8 planner: PointGet don't rely on names in expression.Column (#11779) 2019-08-26 15:40:39 +08:00
fce8d61a5a tikv: refine commit backoff slow log (#11757) 2019-08-26 15:35:42 +08:00
34a8ca30d6 executor: use the kv.PresumeKeyNotExists option in updateRecord() (#11720)
This change can avoid unnecessary network roundtrip when creating a primary key or unique index
2019-08-26 15:18:30 +08:00
236f6dcfef expression: don't use names when do patition pruning (#11858) 2019-08-26 13:53:11 +08:00
4aa1411e3d .github: update pull request template to add release note (#11848) 2019-08-26 13:03:47 +08:00
60e4ffeaf5 main : check --config-check should has --config flag specified first. (#11855)
* check --config-check flag should has --config flag specified first.
2019-08-25 22:34:03 -05:00
f24866a40c *: support bindings for prepare statement (#11642) 2019-08-26 10:30:40 +08:00
7c0093f766 sessionctx/variable: change add index variable default value (#11786) 2019-08-23 19:55:20 +08:00
cc04cd9e3c planner: add index optimizer hint (#11746) 2019-08-23 18:27:46 +08:00
295033f59b ddl: tiny refine the checkForNullValue function. (#11833)
change "select count(*) from `%s`.`%s` where `%s` is null limit 1"
to "select 1 from `%s`.`%s` where `%s` is null limit 1"

The later would return when the first row meets the condition, thus scanning the whole table is avoided
2019-08-23 17:06:18 +08:00
0ff5b50c15 planner: remove unnecessary first_row() functions (#11723) 2019-08-23 14:02:40 +08:00
396b094675 *: record query start time to session variables (#11822) 2019-08-22 21:46:17 +08:00
1b998ce4f6 *: record index name in the slow log instead of index id (#11795) 2019-08-22 14:27:47 +08:00
8b679ed3e2 executor: fix panic when execute change pump state (#11730) 2019-08-22 13:40:45 +08:00
9312090275 util: Faster-Slice-Function (#11808) 2019-08-22 12:45:46 +08:00
73b8e6da3f *: support query block syntax (#11761) 2019-08-22 12:38:36 +08:00
fcef061059 executor: fix wrong partition boundary for window funcions (#11637) 2019-08-22 11:38:28 +08:00