You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Query through distributed table, analyzer onSELECT if(1, resource_attributes, map())
FROMtracing.otel_tracesLIMIT1
FORMAT `Null`
SETTINGS allow_experimental_analyzer =1
Received exception from server (version 24.4.1):
Code: 10. DB::Exception: Received from localhost:9000. DB::Exception: Not found column if(1_UInt8, __table1.resource_attributes, _CAST([]_Map(Nothing, Nothing), 'Map(Nothing, Nothing)'_String)) in block. There are only columns: __table1.resource_attributes: While executing Remote. (NOT_FOUND_COLUMN_IN_BLOCK)
-- Query through distributed table, analyzer offSELECT if(1, resource_attributes, map())
FROMtracing.otel_tracesLIMIT1
FORMAT `Null`
SETTINGS allow_experimental_analyzer =0
Ok.
0 rows inset. Elapsed: 0.833 sec.
-- Query through local table, analyzer onSELECT if(1, resource_attributes, map())
FROMtracing.otel_traces_localLIMIT1
SETTINGS allow_experimental_analyzer =1
Query id: e209cf69-2621-476a-8b25-c1e5ed1f5e78
Ok.
0 rows inset. Elapsed: 0.001 sec.
alexey-milovidov
changed the title
[experimental analyzer] map inside if statement with default empty map value fails when accessed through distributed table
map inside if statement with default empty map value fails when accessed through distributed table
May 12, 2024
alexey-milovidov
added
bug
Confirmed user-visible misbehaviour in official release
analyzer
Issues and pull-requests related to new analyzer
and removed
potential bug
To be reviewed by developers and confirmed/rejected.
labels
May 12, 2024
clickhouse version: 24.4.1.2088
Using
if(..., some_map, map())
appears to fail withallow_experimental_analyzer=1
when queried through a distributed table.our setup:
create table:
This should reproduce it from what I am seeing:
The text was updated successfully, but these errors were encountered: