**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)
```
auto & table_function_node = join_tree_node->as<TableFunctionNode &>();
            expressions_visitor.visit(table_function_node.getArgumentsNode());
            const auto & table_function_factory = TableFunctionFactory::instance();
            const auto & table_function_name = table_function_node.getTableFunctionName();
            auto & scope_context = scope.context;
            TableFunctionPtr table_function_ptr = table_function_factory.tryGet(table_function_name, scope_context);
            if (!table_function_ptr)
            {
                auto hints = TableFunctionFactory::instance().getHints(table_function_name);
                if (!hints.empty())
                    throw Exception(ErrorCodes::UNKNOWN_FUNCTION,
                        "Unknown table function {}. Maybe you meant: {}",
                        table_function_name,
                        DB::toString(hints));
                else
                    throw Exception(ErrorCodes::UNKNOWN_FUNCTION, "Unknown table function {}", table_function_name);
            }
            if (scope_context->getSettingsRef().use_structure_from_insertion_table_in_table_functions && table_function_ptr->needStructureHint())
            {
                const auto & insertion_table = scope_context->getInsertionTable();
                if (!insertion_table.empty())
                {
                    const auto & structure_hint
                        = DatabaseCatalog::instance().getTable(insertion_table, scope_context)->getInMemoryMetadataPtr()->columns;
                    table_function_ptr->setStructureHint(structure_hint);
                }
            }
            resolveExpressionNodeList(table_function_node.getArgumentsNode(), scope, false , true );
            auto table_function_ast = table_function_node.toAST();
            table_function_ptr->parseArguments(table_function_ast, scope_context);