Skip to content

Commit f726144

Browse files
committed
add comment
1 parent 6c4a2dc commit f726144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Analyzer/Resolve/QueryAnalyzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,8 +2267,8 @@ ProjectionNames QueryAnalyzer::resolveMatcher(QueryTreeNodePtr & matcher_node, I
22672267
{
22682268
/** If we are resolving matcher came from the result of JOIN and `join_use_nulls` is set,
22692269
* we need to convert joined column type to Nullable.
2270-
* We are taking the nearest JoinNode to check to which table column belongs,
2271-
* because for LEFT/RIGHT join, we convert only the corresponding side.
2270+
* We are checking all registered_table_expression_nodes which contains all table expressions that are used to resolve matcher.
2271+
* If it's on null side, we need to convert column type to Nullable.
22722272
*/
22732273
for (const auto & table_expression : scope.registered_table_expression_nodes)
22742274
{

0 commit comments

Comments
 (0)