**Describe the bug**
```
milovidov-desktop :) SET allow_experimental_analyzer = 1

SET allow_experimental_analyzer = 1

Query id: b4494b8c-9f14-4d46-8db9-2cb992dcfcb6

Ok.

0 rows in set. Elapsed: 0.001 sec. 

milovidov-desktop :) SELECT arrayFilter(x -> notEmpty(concat(x)), [NULL, NULL]) FROM system.one ARRAY JOIN [1048577] AS elem, arrayMap(x -> concat(x, elem, ''), ['']) AS unused

SELECT arrayFilter(x -> notEmpty(concat(x)), [NULL, NULL])
FROM system.one
ARRAY JOIN
    [1048577] AS elem,
    arrayMap(x -> concat(x, elem, ''), ['']) AS unused

Query id: ca118c75-812b-4c83-bd30-1af64ed38635


0 rows in set. Elapsed: 0.003 sec. 

Received exception from server (version 22.13.1):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Cannot capture column 3 because it has incompatible type: got Array(UInt32), but UInt32 is expected.. (LOGICAL_ERROR)
```
if (!result_left_table_expression)
                        throw Exception(ErrorCodes::UNKNOWN_IDENTIFIER, "JOIN {} using identifier '{}' cannot be resolved from left table expression. In scope {}",
                            join_node.formatASTForErrorMessage(),
                            identifier_full_name,
                            scope.scope_node->formatASTForErrorMessage());
                    auto result_right_table_expression = tryResolveIdentifierFromJoinTreeNode(identifier_lookup, join_node.getRightTableExpression(), scope);
                    if (!result_right_table_expression)
                        throw Exception(ErrorCodes::UNKNOWN_IDENTIFIER, "JOIN {} using identifier '{}' cannot be resolved from right table expression. In scope {}",
                            join_node.formatASTForErrorMessage(),
                            identifier_full_name,
                            scope.scope_node->formatASTForErrorMessage());
                    DataTypePtr common_type = tryGetLeastSupertype(DataTypes{result_left_table_expression->getResultType(), result_right_table_expression->getResultType()});
                    if (!common_type)
                        throw Exception(ErrorCodes::NO_COMMON_TYPE,
                            "JOIN {} cannot infer common type for {} and {} in USING for identifier '{}'. In scope {}",
                            join_node.formatASTForErrorMessage(),
                            result_left_table_expression->getResultType()->getName(),
                            result_right_table_expression->getResultType()->getName(),
                            identifier_full_name,
                            scope.scope_node->formatASTForErrorMessage());
                    NameAndTypePair join_using_columns_common_name_and_type(identifier_full_name, common_type);
                    ListNodePtr join_using_expression = std::make_shared<ListNode>(QueryTreeNodes{result_left_table_expression, result_right_table_expression});
                    auto join_using_column = std::make_shared<ColumnNode>(join_using_columns_common_name_and_type, std::move(join_using_expression), join_tree_node);
                    join_using_node = std::move(join_using_column);
                }
            }
            else if (join_node.getJoinExpression())
            {
                expressions_visitor.visit(join_node.getJoinExpression());
                auto join_expression = join_node.getJoinExpression();