Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
touchinno opened this issue Jan 26, 2025 · 4 comments
Open

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

touchinno opened this issue Jan 26, 2025 · 4 comments
Labels
bug Something isn't working clickhouse

Comments

@touchinno
Copy link

touchinno commented Jan 26, 2025

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 touchinno added the bug Something isn't working label Jan 26, 2025
@modelorona
Copy link
Collaborator

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

@touchinno
Copy link
Author

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

screenshot uploaded ^^

@modelorona
Copy link
Collaborator

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?

@touchinno
Copy link
Author

touchinno commented Feb 5, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clickhouse
Projects
None yet
Development

No branches or pull requests

2 participants