Skip to content

Commit

Permalink
add more annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 committed Jul 5, 2022
1 parent 572be40 commit 4df8d8e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ impl JoinHashTable {
}
Mark => {
let mut has_null = false;
// Check if there is any null in the probe block.
if let Some(validity) = input.column(0).validity().1 {
// `probe_column` is the subquery result column.
// For sql: select * from t1 where t1.a in (select t2.a from t2); t2.a is the `probe_column`,
let probe_column = input.column(0);
// Check if there is any null in the probe column.
if let Some(validity) = probe_column.validity().1 {
if validity.null_count() > 0 {
has_null = true;
}
Expand Down

0 comments on commit 4df8d8e

Please sign in to comment.