DT
Size: a a a
DT
gm
DT
В
2021.03.04 09:36:29.992342 [ 29430 ] {} <Error> DynamicQueryHandler: Code: 241, e.displayText() = DB::Exception: Memory limit (total) exceeded: would use 27.61 GiB (attempt to allocate chunk of 4197660 bytes), maximum: 27.61 GiB, Stack trace (when copying this message, always include the lines below):
K
2021.03.04 09:36:29.992342 [ 29430 ] {} <Error> DynamicQueryHandler: Code: 241, e.displayText() = DB::Exception: Memory limit (total) exceeded: would use 27.61 GiB (attempt to allocate chunk of 4197660 bytes), maximum: 27.61 GiB, Stack trace (when copying this message, always include the lines below):
В
K
В
select 1
K
В
select 1
L
SELECT toDate(sample_time) as date,
uuid,
any(instances.display_name) as instance_name,
display_name,
any(created_at),
NULL as network_id,
NULL as subnet_id,
instance_uuid as resource_uuid,
type_name as type_name,
size_gb as size,
'volume' as resource_type,
round(sum(size) * (pow(2, 30) / pow(10, 9)), 4) as billing_value
FROM volumes
ANY
LEFT OUTER JOIN instances ON resource_uuid = instances.uuid
GROUP BY date, display_name, type_name, uuid, size_gb, instance_uuid;
SELECT toDate(sample_time) as date,
port_id as uuid,
any(instances.display_name) as instance_name,
NULL as display_name,
any(created_at),
network_id,
subnet_id,
device_id as resource_uuid,
NULL as type_name,
NULL as size,
'external_ip' as resource_type,
count(*) as billing_value
FROM external_ips
ANY
LEFT OUTER JOIN instances ON device_id = instances.uuid
GROUP BY date, uuid, network_id, subnet_id, device_id;
DB::Exception: Unknown identifier (in aggregate function 'any'): display_name (version 20.12.8.5 (official build))Не могу понять, это я туплю, или баг какой. Если без any с группировкой делать - всё ок сеелектится
L
M
DT
SELECT toDate(sample_time) as date,
port_id as uuid,
any(i.display_name) as instance_name,
NULL as display_name,
any(created_at),
network_id,
subnet_id,
device_id as resource_uuid,
NULL as type_name,
NULL as size,
'external_ip' as resource_type,
count(*) as billing_value
FROM external_ips
ANY
LEFT OUTER JOIN instances as i ON device_id = i.uuid
GROUP BY date, uuid, network_id, subnet_id, device_id;
DT
L
L
M
E
S
SELECT toDate(sample_time) as date,
uuid,
any(instances.display_name) as instance_name,
display_name,
any(created_at),
NULL as network_id,
NULL as subnet_id,
instance_uuid as resource_uuid,
type_name as type_name,
size_gb as size,
'volume' as resource_type,
round(sum(size) * (pow(2, 30) / pow(10, 9)), 4) as billing_value
FROM volumes
ANY
LEFT OUTER JOIN instances ON resource_uuid = instances.uuid
GROUP BY date, display_name, type_name, uuid, size_gb, instance_uuid;
SELECT toDate(sample_time) as date,
port_id as uuid,
any(instances.display_name) as instance_name,
NULL as display_name,
any(created_at),
network_id,
subnet_id,
device_id as resource_uuid,
NULL as type_name,
NULL as size,
'external_ip' as resource_type,
count(*) as billing_value
FROM external_ips
ANY
LEFT OUTER JOIN instances ON device_id = instances.uuid
GROUP BY date, uuid, network_id, subnet_id, device_id;
DB::Exception: Unknown identifier (in aggregate function 'any'): display_name (version 20.12.8.5 (official build))Не могу понять, это я туплю, или баг какой. Если без any с группировкой делать - всё ок сеелектится