Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add join type for explain analyze partial #16408

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/query/sql/src/executor/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ pub fn format_partial_tree(
children.push(probe_child);

Ok(FormatTreeNode::with_children(
"HashJoin".to_string(),
format!("HashJoin: {}", plan.join_type),
children,
))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ create or replace table t1 as select number as a from numbers(10);
query T
explain analyze partial select * from t1 join t2 on t1.a = t2.b;
----
HashJoin
HashJoin: INNER
├── estimated rows: 10.00
├── output rows: 10
├── TableScan
Expand Down Expand Up @@ -36,7 +36,7 @@ explain analyze partial select * from t1 join t2 on t1.a = t2.b union all selec
----
UnionAll
├── Left
│ └── HashJoin
│ └── HashJoin: INNER
│ ├── estimated rows: 10.00
│ ├── output rows: 10
│ ├── TableScan
Expand All @@ -48,7 +48,7 @@ UnionAll
│ ├── estimated rows: 10.00
│ └── output rows: 10
└── Right
└── HashJoin
└── HashJoin: INNER
├── estimated rows: 10.00
├── output rows: 10
├── TableScan
Expand All @@ -64,7 +64,7 @@ UnionAll
query T
explain analyze partial select * from t1 join t2 on t1.a = t2.b where t1.a > 1;
----
HashJoin
HashJoin: INNER
├── estimated rows: 8.00
├── output rows: 8
├── Filter
Expand All @@ -89,7 +89,7 @@ HashJoin
query T
explain analyze partial select * from t1 join t2 on t1.a = t2.b where t1.a > 10;
----
HashJoin
HashJoin: INNER
├── estimated rows: 0.00
├── Filter
│ ├── filters: [t2.b (#1) > 10]
Expand Down
Loading