Skip to content

Commit 2b9a5e7

Browse files
committed
Fix slow/last queries view (disable analyzer as a workaround for now)
The problem: azat.local$ select ProfileEvents.Names from system.query_log SELECT ProfileEvents.Names FROM system.query_log Query id: 6036f039-3b9b-4cd3-a853-b6d5d24bf92b Elapsed: 0.006 sec. Received exception from server (version 24.10.1): Code: 44. DB::Exception: Received from localhost:9000. DB::Exception: Invalid column type for ColumnUnique::insertRangeFrom. Expected String, got LowCardinality(String). (ILLEGAL_COLUMN) Will be fixed separately.
1 parent 9e3c8e7 commit 2b9a5e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/interpreter/clickhouse.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ impl ClickHouse {
140140
1000,
141141
/* is_important= */ false,
142142
)
143+
// FIXME: ClickHouse's analyzer does not handle ProfileEvents.Names (and similar), it throws:
144+
//
145+
// Invalid column type for ColumnUnique::insertRangeFrom. Expected String, got LowCardinality(String)
146+
//
147+
.with_setting("allow_experimental_analyzer", false, true)
143148
// TODO: add support of Map type for LowCardinality in the driver
144149
.with_setting("low_cardinality_allow_in_native_format", false, true);
145150
let pool = Pool::new(connect_options);

0 commit comments

Comments
 (0)