Skip to content

Commit

Permalink
Fix slow/last queries view (disable analyzer as a workaround for now)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
azat committed Oct 15, 2024
1 parent 9e3c8e7 commit 2b9a5e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/interpreter/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ impl ClickHouse {
1000,
/* is_important= */ false,
)
// FIXME: ClickHouse's analyzer does not handle ProfileEvents.Names (and similar), it throws:
//
// Invalid column type for ColumnUnique::insertRangeFrom. Expected String, got LowCardinality(String)
//
.with_setting("allow_experimental_analyzer", false, true)
// TODO: add support of Map type for LowCardinality in the driver
.with_setting("low_cardinality_allow_in_native_format", false, true);
let pool = Pool::new(connect_options);
Expand Down

0 comments on commit 2b9a5e7

Please sign in to comment.