Commit Graph

1806 Commits

Author SHA1 Message Date
d3c6045f63 *: replace compareDatum by compare (#30421) 2021-12-06 20:41:56 +08:00
9aa756336e executor: avoid sum from avg overflow (#30010) 2021-12-03 11:09:55 +08:00
cec4acbf5e planner/core: fix a data race when building plan for cached table (#30355) 2021-12-03 00:05:54 +08:00
dae711cbe7 planner: Add trace for agg pushdown rule (#30262) 2021-12-02 20:07:54 +08:00
7746b6b70a test: fix incorrect regexp pattern during migrating test (#30080) 2021-12-02 05:51:53 +08:00
4785dc4a62 planner: fix inconsistent schema between UnionAll and child operator (#30231) 2021-12-01 20:35:53 +08:00
94be83bfa6 *: replace compareDatum by compare and fix wrong optimize order by (#30273) 2021-12-01 19:01:53 +08:00
a046014776 planner: Add trace for proj elimination rule (#30275) 2021-12-01 11:23:53 +08:00
a90344c5a3 planner: regard NULL as point when accessing composite index (#30244) 2021-12-01 10:15:34 +08:00
8ace8f612e planner: revise optimize trace logic (#30163) 2021-11-29 19:27:52 +08:00
3baa95ff38 planner: implement aggregation eliminate optimize trace (#30114) 2021-11-29 18:21:53 +08:00
6d7a320641 planner: do not add extra limit when handle the execute stmt (#30152) 2021-11-29 11:07:14 +08:00
126dbc8d72 planner: consider prefix index column length in skyline pruning (#27527) 2021-11-26 15:45:50 +08:00
75f6225948 expression, util/codec: fix wrongly eliminated conditions caused by HashCode() collision (#30120) 2021-11-25 19:33:51 +08:00
bee016b009 update: fix the updatable table name resolution in build update list (#30061) 2021-11-25 17:13:51 +08:00
8dc59e684a planner: make clear for MaybeOverOptimized4PlanCache (#29782) 2021-11-25 16:42:29 +08:00
fe5733ce41 planner: support dump file for trace plan statement (#30059) 2021-11-25 16:19:50 +08:00
78c653e294 planner: rebuild range when the range is empty (#30003) 2021-11-25 15:10:48 +08:00
a75143d20b planner: fix the unstable test TestPartitionWithVariedDatasources (#30139) 2021-11-25 11:11:52 +08:00
05ccb8a206 planner: fix panic when the join key is scalarFunction (#30002) 2021-11-24 15:55:50 +08:00
481455728a *: track the memory usage of IndexJoin more accurate (#29068) 2021-11-24 13:49:50 +08:00
18381f9319 planner: fix the issue that binding cannot work when sql_select_limit is enabled (#29789) 2021-11-23 17:59:52 +08:00
7fdafb47d3 planner: add sub plan info of shuffleReceiver when query explain analyze (#27992) 2021-11-23 16:49:51 +08:00
d15ca2a869 planner: unify the argument of range functions to use SessionCtx instead of StatementContext (#29999) 2021-11-23 12:35:51 +08:00
0f184caa18 planner: use the converted datum based on the target column to point get (#26713) 2021-11-23 11:03:50 +08:00
4d16aabf90 planner: change redundantSchema to fullSchema to correctly handle natural and "using" joins (#29599) 2021-11-22 14:53:49 +08:00
594e7ba87a planner: fix incorrect behavior of index join when one side is tableDual (#29844) 2021-11-22 12:05:49 +08:00
cc7b476481 planner: fix data race (#29957) 2021-11-22 11:51:49 +08:00
7aa86cc96a *: Enable gosec for implicit memory aliasing in for loop (#28996) 2021-11-19 20:07:48 +08:00
db
177be48e94 executor: add retriver for tidb_hot_regions_history (#27375) 2021-11-19 16:43:48 +08:00
35f4816d5a planner: rename duplicated anonymous columns when creating view (#29895)
* planner: rename duplicated anonymous columns when creating view

* add some tests

* modify test

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2021-11-19 15:37:24 +08:00
a62c37851d *: disable prepare cache when encounter cache table (#29702) 2021-11-18 14:05:47 +08:00
5f340b88c9 parser: format error message during parsing when meet a big value. (#28791) 2021-11-18 00:51:47 +08:00
34bd98d39e ddl: fix rename locked table (#29754) 2021-11-17 19:53:47 +08:00
276721877c planner: generate PointGet plans for PlanCache when all conditions are EQ (#29859) 2021-11-17 16:53:47 +08:00
00ece357e5 planner: make the error of access path miss more user friendly (#28879) 2021-11-17 11:53:46 +08:00
7aed6ef3c5 planner: consider the prefix index when we rebuild range for a new plan (#29829) 2021-11-17 10:20:18 +08:00
a0d3f4fe54 planner: fix topn wrongly pushed to index scan side when it's a prefix index (#29778) 2021-11-15 18:01:07 +08:00
9c683d3f67 dml : Support point get / batch point get for cache table (#29703) 2021-11-15 15:49:07 +08:00
4b295081ea Planner,MPP: check whether the order-by items can be pushed down to tiflash/tikv or not (#29763) 2021-11-15 15:37:07 +08:00
bdfd3f6974 *: refine CharsetAndCollation (#29561) 2021-11-12 17:41:05 +08:00
a4bd02e35c planner: add optimizer trace framework for logicalOptimize (#29559) 2021-11-12 12:35:06 +08:00
64f34345d9 parser: forbid invalid column name for analyze columns (#29567) 2021-11-12 02:57:06 +08:00
1eec13120d planner: lazy the subquery-more-than-1-row error after the insert duplicate is actually triggered (#29270) 2021-11-12 01:43:05 +08:00
2409c83381 *: fix staled table cache usage inside a transaction (#29443) 2021-11-11 18:23:05 +08:00
8e2f1c765c planner: migrate indexmerge_test to testify (#29337) 2021-11-11 13:19:06 +08:00
37bfd57dac *: support makezero via golangci-lint (#29267) 2021-11-10 17:05:06 +08:00
82f2bccf03 planner: eliminate empty projection below aggregation (#29606) 2021-11-10 11:55:05 +08:00
bbea5a794e dml : cache table reads data from the original table in a new transaction (#29575) 2021-11-09 16:47:06 +08:00
7227ef87da planner: fix the issue that set wrong length and width for Decimal and Real when using plan-cache (#29579) 2021-11-09 10:47:04 +08:00