whodb icon indicating copy to clipboard operation
whodb copied to clipboard

[BUG] - Query result from scratchpad shows error in clickhouse

Open touchinno opened this issue 11 months ago • 4 comments

Describe the bug I have the following query in the scratchpad

select hostname, type, event_time, query, databases, tables, COLUMNS('exp*'), address, port 
from system.query_log
order by event_date, event_time
limit 10

When I selected the ClickHouse database and executed the above query, an error occurred, and it is displayed as shown in the following screenshot.

I think this happens when one of result columns has array type...

To Reproduce As explained above

Expected behavior The normal SQL execution results are displayed.

Screenshots

Image

Additional context .

touchinno avatar Jan 26 '25 02:01 touchinno

Hi @touchinno , thanks for trying out WhoDB! It looks like you're missing your screenshot as it's the same code block twice.

modelorona avatar Jan 26 '25 10:01 modelorona

Hi @touchinno , thanks for trying out WhoDB! It looks like you're missing your screenshot as it's the same code block twice.

<Ctrl-V> screenshot uploaded ^^

touchinno avatar Jan 27 '25 00:01 touchinno

Thank you for uploading your screenshot!

By any chance, are you using a public test database, or are you able me with an idea of how your system.query_log table looks like in terms of column data types?

modelorona avatar Feb 05 '25 22:02 modelorona

Thank you for uploading your screenshot!

By any chance, are you using a public test database, or are you able me with an idea of how your system.query_log table looks like in terms of column data types?

That table is the system table which contains information about executed queries managed by clickhouse server.

https://clickhouse.com/docs/en/operations/system-tables/query_log

touchinno avatar Feb 05 '25 23:02 touchinno

should be fixed in the latest version when we release, sorry for the delay!

modelorona avatar Aug 29 '25 17:08 modelorona

new version released and this should be sorted, so closing it out! Let us know if you come across it/other issues :)

modelorona avatar Sep 04 '25 09:09 modelorona