You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
totals don't work with new Clickhouse server versions #1387
Thank you for reporting the issue. It appears that the problem is not limited to gRPC in the new version but also includes RowBinary or the method of generating the totals output.
No I didn't, as typically there is no response from anyone.
I would throw an error, that totals are not supported.
It's a bit difficult because 1) it requires SQL parsing to understand if the result should have totals or not; and 2) it's hard to tell if the server missed totals or not in RowBinary format(because it does not have a separator like the blank line added into TSV format).
I think it's good idea to be more defensive and add more validations on client side in case the server missed anything or protocol changed. Perhaps it would be beneficial to transition to the native data format, considering it as a first-class citizen.
to the native data format, considering it as a first-class citizen.
I don't like native, it requires much more compute power from the client. Some users will complain that JDBC driver needs 8GB RAM to process select results (to pivot very long native block). Go-driver has this issue, they just limited the max size of the native block in a result and reject to execute some queries at all.
Yes, almost forgot that :p However, determining whether the last few rows in the RowBinary format represent totals or not can be challenging.
I don't like native, it requires much more compute power from the client.
Offloading serialization and deserialization to clients can be beneficial in certain scenarios, particularly for improving server scalability and handling higher request loads, particularly during ingestion processes. #1357 does not benefit RowBinary much but I believe it helps for Native.
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
Activity
[-]totals don't work anymore[/-][+]totals don't work with new Clickhouse server versions[/+]zhicwu commentedon Jun 28, 2023
Thank you for reporting the issue. It appears that the problem is not limited to gRPC in the new version but also includes RowBinary or the method of generating the totals output.
den-crane commentedon Jun 29, 2023
@zhicwu
Did you report this to Clickhouse?
den-crane commentedon Jun 30, 2023
I would throw an error, that totals are not supported.
zhicwu commentedon Jul 1, 2023
No I didn't, as typically there is no response from anyone.
It's a bit difficult because 1) it requires SQL parsing to understand if the result should have totals or not; and 2) it's hard to tell if the server missed totals or not in RowBinary format(because it does not have a separator like the blank line added into TSV format).
I think it's good idea to be more defensive and add more validations on client side in case the server missed anything or protocol changed. Perhaps it would be beneficial to transition to the native data format, considering it as a first-class citizen.
den-crane commentedon Jul 4, 2023
It seems like
totalsis already detected https://github.com/search?q=repo%3AClickHouse%2Fclickhouse-java%20totals&type=codeI would throw an error always, no matter format.
I don't like native, it requires much more compute power from the client. Some users will complain that JDBC driver needs 8GB RAM to process
selectresults (to pivot very long native block). Go-driver has this issue, they just limited the max size of the native block in a result and reject to execute some queries at all.zhicwu commentedon Jul 4, 2023
Yes, almost forgot that :p However, determining whether the last few rows in the RowBinary format represent totals or not can be challenging.
Offloading serialization and deserialization to clients can be beneficial in certain scenarios, particularly for improving server scalability and handling higher request loads, particularly during ingestion processes. #1357 does not benefit RowBinary much but I believe it helps for Native.
mzitnik commentedon Aug 2, 2023
@den-crane So looks like the problem solved on ClickHouse server side can we close it?
3 remaining items
den-crane commentedon Sep 11, 2023
yes, it was intentional change
shenluwei commentedon Sep 11, 2023
You need change your Driver to this one -------cc.blynk.clickhouse.ClickHouseDriver

den-crane commentedon Sep 11, 2023
Thank you, I found another solution. I decided to retire and start growing cabbage.
github-actions commentedon Jan 8, 2025
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!