22.4.5

```sql
SELECT dummy
FROM cluster(test_cluster_two_shards, system.one)
WHERE dummy IN (
    SELECT dummy
    FROM cluster(test_cluster_two_shards, system.one)
)
LIMIT 1 BY dummy
SETTINGS distributed_product_mode = 'local'


Received exception from server (version 22.4.5):
Code: 43. DB::Exception: Received from localhost:9000. 
DB::Exception: Cannot create column of type Set. (ILLEGAL_TYPE_OF_ARGUMENT)

```

22.3.4.20
```sql
SELECT dummy
FROM cluster(test_cluster_two_shards, system.one)
WHERE dummy IN (
    SELECT dummy
    FROM cluster(test_cluster_two_shards, system.one)
)
LIMIT 1 BY dummy
SETTINGS distributed_product_mode = 'local'

┌─dummy─┐
│     0 │
└───────┘
```
{
                            
                            if (node->column && isColumnConst(*node->column))
                            {
                                select_query->group_by_with_constant_keys = true;
                                
                                if (!aggregate_descriptions.empty() || group_size > 1)
                                {
                                    if (j + 1 < static_cast<ssize_t>(group_size))
                                        group_elements_ast[j] = std::move(group_elements_ast.back());
                                    group_elements_ast.pop_back();
                                    --j;
                                    continue;
                                }
                            }
                        }
                        NameAndTypePair key{column_name, node->result_type};
                        grouping_set_list.push_back(key);
                        
                        if (!unique_keys.contains(key.name))
                        {
                            unique_keys.insert(key.name);
                            aggregation_keys.push_back(key);
                            
                            aggregated_columns.push_back(std::move(key));
                        }
                    }
                    aggregation_keys_list.push_back(std::move(grouping_set_list));
                }
                else