bada2801ac
*: fix cop task runtime information is wrong in the concurrent executor ( #19849 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-11 14:14:37 +08:00
8446ec9e08
tikv: support scatter region with option api ( #19844 )
2020-09-11 14:02:34 +08:00
ab00d56628
support round function push down to TiFlash ( #19616 )
2020-09-11 12:46:29 +08:00
794aa02625
sessionctx/variable: fix cannot select session scope ScopeNone variable ( #19584 )
2020-09-11 11:33:35 +08:00
f13d605273
executor: fix cluster_slow_query time type in streaming request bug ( #19938 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-11 10:55:09 +08:00
8f188b567a
server: remove useless code ( #15568 )
2020-09-11 10:25:25 +08:00
4d0d946abd
tikv: commit all keys asynchronously in async commit ( #19936 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com >
2020-09-11 06:57:34 +08:00
52d3dae1d3
executor: support memory track for max/min
2020-09-10 17:47:20 +08:00
f388b094df
planner: add optimizer hint TOPN_TO_COP() ( #19545 )
...
* planner: add TopN_To_Cop hint.
* go fmt.
* add a method canPushToCop() to check if it is valid to push the TopN down.
* add unit test case for warning.
* gofmt.
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-10 17:18:20 +08:00
c308a18494
store/tikv: log for async commit recovery ( #19925 )
...
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-10 17:07:57 +08:00
0859e757a2
statistics: add default value of CMSketch for Analyze ( #19455 )
2020-09-10 16:57:01 +08:00
0fc03a9f71
session: use new PD TS as forUpdateTS on pessimistic write conflict ( #19916 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
2020-09-10 16:35:20 +08:00
c7a836b609
ddl: support create table with expression index ( #18125 )
...
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* fix
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* add
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* save
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* Update ddl/ddl_api.go
Co-authored-by: Lynn <zimu_xia@126.com >
* 2
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* fix
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
Co-authored-by: Lynn <zimu_xia@126.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-10 15:26:15 +08:00
71d7262067
expression: Support distinct in select stddev_pop() ( #19680 )
2020-09-10 14:43:51 +08:00
5d52a34b24
executor: trace memory usage of ntile() ( #19756 )
2020-09-10 13:24:09 +08:00
80e04b55bb
executor: trace memory usage of first_row() ( #19757 )
...
Signed-off-by: Howie <haoweili35@gmail.com >
2020-09-10 10:47:20 +08:00
c022fdcaeb
expression: avoid unnecessary warnings/errors when folding constants in control expr ( #19675 )
...
* reduce unnecessary warnings/errors in constrant fold
* update formate
* add commits
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-09 20:08:50 +08:00
dd8f654d7d
ddl: append column change args to job args after updating the tableInfo ( #19619 )
2020-09-09 19:33:47 +08:00
e2d8d29a34
tikv: support async commit locks in BatchResolveLocks ( #19860 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
2020-09-09 19:07:20 +08:00
4a638269dd
executor: support memory trace for value functions ( #19811 )
2020-09-09 18:15:10 +08:00
5fd2919945
executor: trace memory usage of cume_dist() ( #19832 )
2020-09-09 17:25:19 +08:00
7b6a5cdb76
executor: fix escape for select into outfile ( #19661 )
2020-09-09 16:55:29 +08:00
0c36203f1d
expression: add new scalar function IsTruthWithNull ( #19621 )
2020-09-09 16:03:10 +08:00
b6b9b8a6df
exector, planner: Improve the performance of the aggFuncMaxMin by using sliding window ( #16819 )
...
* temp
* temp
* unit test
* executor: Improve the performance of `aggFuncMin` by using sliding window
* executor: Improve the performance of `aggFuncMin` by using sliding window
* executor: Improve the performance of `aggFuncMin` by using sliding window
add ut
* fix: ResetPartialResult
* add maxMin4Time.Slide and maxMin4Duration.Slide
* add benchmark
* add var `dirty`
* add a comment
* fix Decimal
* newMyDecimalMaxMinQueue
* newMyDecimalMaxMinQueue
* newMyDecimalMaxMinQueue
* newMyDecimalMaxMinQueue
* newMyDecimalMaxMinQueue
* implementing the maxMinQueue using heap
* fix import check
* fix import check
* fix check
* remove PushMyDecimal
* refactor maxMinHeap
* 尝试优化heap
* 尝试优化heap
* fix benchmark
* fix:*
* solved pr comments
* solved pr comments
* fix
* fix
* fix
* 先回家
* maxMin4IntSliding
* fix import
* fix
* new builder
* fix ut
* fix
* fix
* fix ut
* fix ut
* fix fmt
* add benchmark
* fix
* fix
* lazyload
* lazyload
* fix frame
* fix check_dev
* add a unit test
* sliding aggFunc
* sliding aggFunc
* fix
* move ut
* fix dev_check
* fix dev_check
* resolved comments
* refactor ut
* refactor ut
* refactor ut
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
2020-09-09 14:31:41 +08:00
0c822d13a1
util: avoid spilling to disk after rowContainer has been closed. ( #19750 )
2020-09-09 13:04:52 +08:00
f9b71fca1f
executor: implement memDelta for BitFunc funcs to track memUsage ( #19808 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: HuaiyuXu <391585975@qq.com >
2020-09-09 11:57:10 +08:00
8a1f11ecee
executor: add memory trace for percent rank agg functions ( #19852 )
...
* add memory trace for percent_rank func
* add unit tests
* add func_percent_rank_test.go
* modify year in license
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-09 11:33:12 +08:00
7e357b5092
executor: trace memory usage of row_number()
2020-09-09 11:16:33 +08:00
0b306ef351
executor: fix show table regions bug ( #19562 )
2020-09-09 10:58:41 +08:00
5435980006
store/tikv: implement async commit version of resolve locks ( #18467 )
2020-09-09 08:09:51 +08:00
2836011470
executor, planner: refactor analyze tableID to analyzeTableID & add CanRuntimePrune ( #19846 )
...
* executor, planner: refactor analyze tableID to analyzeTableID
* *: add util to help decide whether use new runtime prune partition executor
* address comments
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-08 23:49:39 +08:00
bc3c84afb2
ddl: add partition should not take table information ( #19671 )
2020-09-08 21:33:53 +08:00
449587a085
*: using standard error to replace terror ( #19425 )
2020-09-08 20:15:51 +08:00
48388a7b48
planner,executor: enable plan cache for partition table ( #19124 )
...
* planner,executor: enable plan cache for partition table
* address comment
* tiny clean up
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: lysu <sulifx@gmail.com >
2020-09-08 19:40:39 +08:00
354f3997c0
executor: add concurrency limit on union executor ( #19827 )
2020-09-08 19:16:23 +08:00
9c73cbaa3b
domain: make TestT more stable ( #19879 )
2020-09-08 18:41:38 +08:00
05809a9cf2
Revert "expression, types: fix decimal precision for SUM function ( #19592 )" ( #19882 )
2020-09-08 18:21:18 +08:00
2f2c57ecc8
executor, util: fix TestGlobalMemoryTrackerOnCleanUp ci error ( #19863 )
2020-09-08 18:15:46 +08:00
2d52e99d0f
executor: fix error tikv_cop_wait metric ( #19859 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-08 16:59:53 +08:00
0e26d40948
distsql: fix wrong default max allowed packet ( #19573 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-08 15:35:53 +08:00
b446feaf94
test: fix ci failure in TestParallelDropSchemaAndDropTable ( #19825 )
2020-09-08 15:16:47 +08:00
fce9a669c2
config: enlarge the default value of max-txn-ttl ( #19826 )
2020-09-08 14:27:29 +08:00
f8c8217d5c
unistore: support analyze multi-ranges ( #19838 )
2020-09-08 13:40:41 +08:00
e644cfcc73
grafana: handle negative delta in runtime dashboard ( #19848 )
2020-09-08 11:23:30 +08:00
47270445d9
server: fix the missing detachment for the mem/disk tracker ( #19794 )
2020-09-08 10:48:51 +08:00
726341146b
expression, types: fix decimal precision for SUM function ( #19592 )
2020-09-07 16:23:54 +08:00
221223b46b
executor: add more runtime information for join executor ( #19721 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-07 14:53:20 +08:00
3d33bdf49f
privilege: fix wrong result of SHOW GRANTS ( #19704 )
...
* fix show grants user filter
* address comment
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-07 14:45:20 +08:00
a961a70c53
executor: fix fast analyze race condition on session ctx ( #19716 )
...
* executor: fix fast analyze race condition on session
* unify return error
* make lint happy
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-07 14:35:21 +08:00
397e31a673
planner: fix incorrect result for != all (subq) ( #19576 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-07 14:07:21 +08:00