mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
b29a0f3c84
The problem was that after #36454 it requires too much columns. Fixes: #36454 Fixes: #37045 Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
16 lines
390 B
SQL
16 lines
390 B
SQL
SELECT k
|
|
FROM (
|
|
SELECT k, abs(v) AS _v
|
|
FROM remote('127.{1,2}', view(select materialize('foo') as k, -1 as v))
|
|
ORDER BY _v ASC
|
|
LIMIT 1 BY k
|
|
)
|
|
GROUP BY k;
|
|
|
|
-- Simplified version of the reproducer provided in [1].
|
|
-- [1]: https://github.com/ClickHouse/ClickHouse/issues/37045
|
|
SELECT dummy
|
|
FROM remote('127.{1,2}', system.one)
|
|
WHERE dummy IN (SELECT 0)
|
|
LIMIT 1 BY dummy;
|