SP
Size: a a a
SP
KS
SP
SP
KS
KS
SP
SP
SP
[[1, 1], [2, 3]
] AS c
SELECT
t1.*,
c
[1
] AS c1,
c
[2
] AS c2,
t2.*
FROM test
AS t1
ARRAY JOIN c
INNER JOIN test
AS t2
ON t2.id
= toInt32(c
[2
])
WHERE t1.id
= (c
[1
])
ошибка DB::Exception: No alias for non-trivial value in ARRAY JOIN
KS
SP
СК
SP
O
O
S
select formatReadableSize(sum(bytes_allocated)) from system.dictionaries;
SELECT
database,
name,
formatReadableSize(total_bytes)
FROM system.tables
WHERE engine = 'Memory'
select formatReadableSize(sum(memory_usage)) from system.merges;
select formatReadableSize(sum(memory_usage)) from system.processes;
SELECT
initial_query_id,
formatReadableSize(memory_usage),
formatReadableSize(peak_memory_usage),
query
FROM system.processes
ORDER BY peak_memory_usage DESC
LIMIT 10
SELECT
initial_query_id,
formatReadableSize(memory_usage),
query
FROM system.query_log
WHERE (event_date >= today()) AND (event_time >= (now() - 7200))
ORDER BY memory_usage DESC
LIMIT 10
S
O
O
S
[[1, 1], [2, 3]
] AS c
SELECT
t1.*,
c
[1
] AS c1,
c
[2
] AS c2,
t2.*
FROM test
AS t1
ARRAY JOIN c
INNER JOIN test
AS t2
ON t2.id
= toInt32(c
[2
])
WHERE t1.id
= (c
[1
])
ошибка DB::Exception: No alias for non-trivial value in ARRAY JOIN