Commit Graph

190 Commits

Author SHA1 Message Date
c27f8f697f executor: return error as expected when indexHashJoin occur error or panic in handleTask (#31323)
close pingcap/tidb#31129
2022-01-07 15:14:37 +08:00
443f15ed4e executor: send a task with error to the resultCh when panic happen (#30214) 2021-11-29 20:15:52 +08:00
4d16aabf90 planner: change redundantSchema to fullSchema to correctly handle natural and "using" joins (#29599) 2021-11-22 14:53:49 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
dc53b520bf executor: fix hash join between datetime and timestamp (#25915) 2021-07-06 11:21:28 +08:00
79db8cb3a3 executor: make analyze test be stable (#25547) 2021-06-18 16:02:38 +08:00
eb91585d6d executor: temporarily skip some unstable test cases. (#25224)
- testResourceTagSuite.TestResourceGroupTag (#25189)
- testSuiteJoin1.TestIndexLookupJoin (#25191)
- testSuite1.TestAnalyzeIndex (#25188)
- testSuite1.TestAnalyzeIncremental (#25187)
- testVectorizeSuite2.TestVectorizedBuiltinTimeEvalOneVec (#25169)
2021-06-08 15:35:54 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
411dba25b1 *: deprecate alter-primary-key configuration (#23270) 2021-03-18 15:17:36 +08:00
c382b9b01e executor: hash join out of index panic when enum column value is zero (#23162) 2021-03-10 12:18:54 +08:00
3750320899 executor: add close recordSet in executor (#22714) 2021-03-07 17:54:55 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
2d48f9573c planner: decorrelate LogicalApply with inner join as the inner child (#22649) 2021-02-24 15:42:03 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
c3576fa0f0 planner: fix unknown columns in join using below agg (#21922)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-23 11:26:06 +08:00
d44e123395 planner: prevent agg push down if it is in the outer child of apply (#21902) 2020-12-22 16:43:26 +08:00
65a3a7d9a4 planner: fix join with using clause didn't check ambiguous columns (#21411) 2020-12-03 18:05:48 +08:00
550c2c0c10 planner: natural join not consider rowid and null eq not propagate (#21328)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-02 12:18:48 +08:00
2e918a2e8f executor: specially handle empty input for apply's outer child aggregate (#20544) 2020-11-19 13:54:23 +08:00
f1a0a28af4 executor, planner: do not coalesce column for update/delete natural_using_join (#21085) 2020-11-17 15:36:57 +08:00
41786cb976 *: seperate hash keys from join keys in IndexJoin (#20761) 2020-11-16 16:24:51 +08:00
dfc3bbdee6 util, executor: parse set value correctly in HashChunkRow (#21048) 2020-11-16 14:51:26 +08:00
c8545947a1 executor, planner: fix some cases for natural_using_join (#20977) 2020-11-12 18:03:58 +08:00
3ef3e54b5e planner: don't push down null sensitive join conditions (#19620) 2020-11-12 17:16:31 +08:00
f140db6fce executor: fix issue of runtime stats of index merge join is wrong (#20892)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-09 23:27:54 +08:00
e9941af783 executor: fix IndexHashJoin hang in finishJoinWorkers (#20780) 2020-11-03 13:59:20 +08:00
2e4390b9c5 executor: Check if the query is killed when joining rows in HashJoin (#20270) 2020-10-28 20:16:02 +08:00
650515a420 executor: fix data race in test (#20142) 2020-09-22 14:58:38 +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
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
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +08:00
1e9b519ff7 executor: clean outerMatchedStatus when HashJoin.Close is called (#19510) 2020-08-31 14:45:04 +08:00
1417991cef executor: reset INLJ.task when Close (#19513) 2020-08-27 14:05:36 +08:00
cc661e0c2f planner: make a copy of column before modifying its InOperand (#19472) 2020-08-26 16:43:35 +08:00
9e6688c1bb executor: uncomment the join test for issue #11896 (#19446)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 08:51:22 +08:00
30456dfaa5 executor: Uncomment join test (#18697)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-25 17:48:52 +08:00
5184a0d706 executor: fix the bug: can not join if join keys are type bigint and type bit (#19032)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 19:44:48 +08:00
0448a54875 types: fix wrong hash key for decimal (#19131)
* types: fix wrong hash key for decimal

* fix bug

* fix & add test

* address comments and add test

* add test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 19:29:17 +08:00
b8670fb231 executor: implement a concurrent hash table for Concurrent build (#16678)
* refine code of unsafeHashTable

* refine unsafeHashTable

* concurrentMapHashTable is ok

* update comments

* add comments

* add comments

* update make slickes

* update according to comments

* add comments

* update according to comments from liyuan

* remove useless estRows

* update test because the output of INL_hash_join does not promose order

* update testConcurrentMap

* update imports

* update test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-10 19:32:19 +08:00
8976ffef9c store: add lock for runtime stats to fix panic caused by concurrent execution (#18983) 2020-08-05 13:53:44 +08:00
847a3b73dc planner: don't put the handle column twice into the index column (#18565)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-21 15:38:50 +08:00
c2b56e96c8 executor: return error from indexHashJoin worker to main thread (#18573) 2020-07-15 16:41:24 +08:00
30858ec8ea executor: return error when recover indexHash/MergeJoin worker (#18509) 2020-07-14 10:44:27 +08:00
daad2699dd *: support clustered index for index join (#18204) 2020-07-01 16:15:51 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
a8da23c254 test: fix data race caused by update global config (#17964)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-12 13:05:27 +08:00
e8779717d9 planner, expression: Remove the default asc order in explain result (#17074) 2020-05-14 17:38:19 +08:00
e607157efe util, executor: deep clone shallowRow in baseJoiner.Clone (#16644) 2020-04-24 15:10:06 +08:00