Does WithProgress and WithProfile work with HTTP Protocol? #1507
Unanswered
stephenmcrowe
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Similar to issue 639, I would like to get the statistics of the number of rows and bytes read per query and log them. My understanding is that information is only available via Profile Info.
Aside: Yes, I understand I can also directly query the ClickHouse query log, but it'd be nice to have it together with the query that is issued.
Observed
The
WithProgress
andWithProfile
callbacks work when connecting over native TCP, but not when using the HTTP protocol.Code example
Log
When working:
With the
HTTP.Protocol
:Details
There seem to be quite a few references that I've found in the repository for working with the Progress and Profile structs, but none with HTTP protocol. Putting them here in case it's helpful to anyone:
Environment
clickhouse-go
version: v2.23.2database/sql
compatible driverCREATE TABLE
statements for tables involved:Beta Was this translation helpful? Give feedback.
All reactions