Skip to content

Commit 236a74a

Browse files
committed
chore(query): refactor the cardinality of anti-join
1 parent d60ce52 commit 236a74a

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2021 Datafuse Labs
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
16+
pub struct RulePushdownAntiJoin {
17+
18+
}

tests/sqllogictests/suites/mode/standalone/explain_native/join_reorder/chain.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ HashJoin
573573
├── probe keys: [t1.a (#1)]
574574
├── keys is null equal: [false]
575575
├── filters: []
576-
├── estimated rows: 10.00
576+
├── estimated rows: 9.00
577577
├── TableScan(Build)
578578
│ ├── table: default.join_reorder.t
579579
│ ├── scan id: 0

tests/sqllogictests/suites/mode/standalone/explain_native/push_down_filter/push_down_filter_join/push_down_filter_join_semi_anti.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ HashJoin
2828
├── probe keys: [t1.a (#0)]
2929
├── keys is null equal: [false]
3030
├── filters: []
31-
├── estimated rows: 0.00
31+
├── estimated rows: 1.00
3232
├── TableScan(Build)
3333
│ ├── table: default.default.t2
3434
│ ├── scan id: 1

tests/sqllogictests/suites/mode/standalone/explain_native/subquery.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ HashJoin
314314
├── probe keys: [t.number (#0)]
315315
├── keys is null equal: [false]
316316
├── filters: []
317-
├── estimated rows: 0.25
317+
├── estimated rows: 0.50
318318
├── Filter(Build)
319319
│ ├── output columns: [numbers.number (#1)]
320320
│ ├── filters: [numbers.number (#1) < 10, numbers.number (#1) = 0]

0 commit comments

Comments
 (0)