**Describe the bug**

The query:
```
SELECT
    (current_database = currentDatabase()) AND (type = 0),
    ((current_database = currentDatabase()) AND (type = NULL)) AND (type = NULL) AND ((current_database = currentDatabase()) AND (type = 1048575)) AND (type = NULL) AND (event_date >= yesterday())
FROM system.query_log
ARRAY JOIN ProfileEvents
WHERE ProfileEvents AND (current_database = currentDatabase())
ORDER BY event_time DESC NULLS FIRST
LIMIT 0
```
crashes the server.

Most likely introduced here: #16618
{
        ss << "array_join " << "FIXME doesn't have dump" << "\n";
    }
    if (before_join)
    {
        ss << "before_join " << before_join->dumpDAG() << "\n";
    }
    if (before_where)
    {
        ss << "before_where " << before_where->dumpDAG() << "\n";
    }
    if (prewhere_info)
    {
        ss << "prewhere_info " << prewhere_info->dump() << "\n";
    }
    if (filter_info)
    {
        ss << "filter_info " << filter_info->dump() << "\n";
    }
    if (before_aggregation)
    {
        ss << "before_aggregation " << before_aggregation->dumpDAG() << "\n";
    }
    if (before_having)
    {
        ss << "before_having " << before_having->dumpDAG() << "\n";
    }
    if (before_window)
    {
        ss << "before_window " << before_window->dumpDAG() << "\n";