Skip to content

Commit 6e26b30

Browse files
committed
Add debug for inner join
Signed-off-by: Xuanwo <[email protected]>
1 parent 40db9fd commit 6e26b30

File tree

1 file changed

+4
-3
lines changed
  • src/query/service/src/pipelines/processors/transforms/hash_join/probe_join

1 file changed

+4
-3
lines changed

src/query/service/src/pipelines/processors/transforms/hash_join/probe_join/inner_join.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ impl HashJoinProbeState {
9090
}
9191

9292
if FROM_LEFT_SINGLE && match_count > 1 {
93-
return Err(ErrorCode::Internal(
94-
"Scalar subquery can't return more than one row",
95-
));
93+
return Err(ErrorCode::Internal(format!(
94+
"Scalar subquery can't return more than one row, but got {}",
95+
match_count
96+
)));
9697
}
9798

9899
// Fill `probe_indexes`.

0 commit comments

Comments
 (0)