Commit Graph

824 Commits

Author SHA1 Message Date
79211fe63d plan: make query on partition table not cacheable (#16375) 2020-04-22 21:58:20 +08:00
b6fcc15744 planner: enforce the required property when hint cannot satisf… (#15650) 2020-04-22 14:26:20 +08:00
692e0098b1 expression: avoid Order By constant expression error when pl… (#16261) 2020-04-21 20:04:23 +08:00
138f225d62 executor: only return the first row of a subquery (#16399) 2020-04-21 09:45:50 +08:00
c601324597 planner: resolve order by item from select fields first when c… (#16332) 2020-04-20 19:38:24 +08:00
2a69052cf1 test: fix unit test and make test running serially. (#16525) 2020-04-20 17:44:26 +08:00
4ded1e2a07 planner : change the define of 'last_plan_from_cache' (#16594) 2020-04-20 15:36:56 +08:00
5bdc0eaf50 executor: fix slow_query bug when query with time equal condition (#16445) 2020-04-20 10:52:03 +08:00
dd57c0ad8b planner: ban rule_generate_column_substitute when column's… (#16316) 2020-04-17 19:43:30 +08:00
25580ea5f4 *: Use a function to get the ONE, ZERO and NULL and fix the clone. (#16512) 2020-04-17 19:11:52 +08:00
ff7413fedb planner, sessionctx : Add 'last_plan_from_cache' to help know whether sql's plan is from plan cache (#16321) 2020-04-17 17:15:21 +08:00
d8e6cf8de6 planner/core: support partition pruning for partition expression floor(unix_timestamp()) (#16402) 2020-04-17 16:17:33 +08:00
b8494e7a11 expression: support disable expression pushdown based on store… (#16389) 2020-04-17 14:53:25 +08:00
e3b635e6c9 planner: cannot simply outer join if a predicate just refers to the outer table (#16444) 2020-04-16 22:27:16 +08:00
b44f5073e6 executor: support 'SHOW CONFIG' syntax to show configs of PD and TiKV instances (#16230) 2020-04-16 17:51:07 +08:00
eeffe1e26f planner, expression: set correct for ctx in isNullRejected (#16430) 2020-04-16 16:24:57 +08:00
637d3b8a44 planner: only push count distinct when child is DataSouce (#16371) 2020-04-16 13:04:33 +08:00
8f000fc353 planner: push avg & distinct functions across union (#16344) 2020-04-15 18:07:37 +08:00
d26875db7e expression: fix error PushDownNot for contiguous NOT (#16108) 2020-04-15 17:52:14 +08:00
7e71069ffa planner: fix generated column causes a server crash (#16376) 2020-04-15 14:54:32 +08:00
85efba06ec planner: fix group by resolver for multi items with param mark… (#16363) 2020-04-14 22:29:05 +08:00
4e035fa34c ddl: fix timezone dependent check when creating partition table (#16343) 2020-04-14 21:39:07 +08:00
c66320c464 planner: fix panic when two table scan as the build side for i… (#16001) 2020-04-14 18:22:43 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
49ee75a0a5 planner, executor: enable inline projection for merge join (#15463) 2020-04-09 15:58:32 +08:00
f3b8f60480 ddl, planner: handle sequence name check in preprocess (#16193) 2020-04-09 10:59:24 +08:00
bdbc25418e planner: fix different err msg from MySQL when group by window function (#16134) 2020-04-08 12:34:54 +08:00
38d9711560 planner: Add explain info for InspectionRuleTableExtractor (#16087) 2020-04-08 00:44:54 +08:00
c48499ff36 planner, executor: set TblInfo correctly when fast analyze PK (#16005) 2020-04-04 15:29:54 +08:00
a69e7da69b util/hint: resolve semantically equivalent bindings into a single one (#15895) 2020-04-03 17:27:57 +08:00
f572c8efc5 planner: add warning when use_index_merge hint's index names are invalid (#15960) 2020-04-03 11:33:38 +08:00
aa7ef9c464 planner: fix wrong outer join elimination when join key is empty (#15894) 2020-04-02 15:08:34 +08:00
77f970c48c planner: fix push down distinct when need to inject projection (#15997) 2020-04-02 11:43:01 +08:00
4eb9ca3d3f planner: push aggregation functions with distinct to cop (#15500) 2020-04-01 20:49:14 +08:00
82529c886c exprssion, planner: fix the uncorrect behavior when finding access conditions (#15888) 2020-04-01 19:08:25 +08:00
07194a0e98 planner, executor: fix wrong result of semijoin for INLHashJoin (#15952) 2020-04-01 18:42:40 +08:00
c0db1c2215 planner: fix panic when get NominalSort's stats (#15947) 2020-04-01 18:26:32 +08:00
cfd875219e planner: invalidate cached plan if no UnionScan for tables that need it (#15429) 2020-04-01 16:05:36 +08:00
25f15c7a5c planner: get enforced merge join with empty join keys when contains conflicted collation (#15841) 2020-03-31 22:13:42 +08:00
10de222741 planner: fix panic of merge join for tables with redundant indexes (#15840) 2020-03-31 20:45:11 +08:00
746c88a461 bindinfo, planner: make evolve tasks consider runtime hints instead of ignoring them (#15668) 2020-03-31 20:30:23 +08:00
2619f02ddd *: move hint and block hint processor to util directory (#15897) 2020-03-31 16:37:45 +08:00
17530c4059 expression: Support collate for user session variable (#15449) 2020-03-31 11:29:07 +08:00
506763905a planner: add warning when join hint has no arguments (#15583) 2020-03-30 22:53:11 +08:00
d0ca931565 planner: Fix the 'Unknown column' error when select from view… (#15621) 2020-03-30 21:03:38 +08:00
08c4c665fd session: initialize session bind handler when creating session according to createSessionWithOpt (#15724) 2020-03-30 14:48:10 +08:00
71cf7e92f1 bindinfo: build ID of BindRecord from Hint instead of explain query (#15781) 2020-03-30 14:40:43 +08:00
b77f912866 planner: add warning when table doesn't exist in read_from_sto… (#15256) 2020-03-30 13:39:59 +08:00
8417036804 executor: Add "ignore_plan_cache" hint (#15588) 2020-03-30 11:04:43 +08:00
7223e7f8c9 bindinfo, planner: fix TiFlash compatibility with binding and SQL plan management (#15719) 2020-03-27 15:44:15 +08:00