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
var gpLiveDataRes resgp.GpLiveData
querySql := fmt.Sprintf("SELECT * FROM %s WHERE tournament_id = $1 AND match_id = $2 AND gp_live_match_id = $3 ORDER BY offset_num DESC LIMIT ", where.TableName())
if err := repositories.GetCDb(s.Tx).QueryRow(
querySql,
where.TournamentId,
where.MatchId,
where.GpLiveMatchId,
).Scan(
&gpLiveDataRes.TournamentId,
&gpLiveDataRes.MatchId,
&gpLiveDataRes.GpLiveMatchId,
&gpLiveDataRes.OffsetNum,
&gpLiveDataRes.LiveDataNum,
&gpLiveDataRes.LiveData,
&gpLiveDataRes.TimeStamps,
&gpLiveDataRes.Dateline,
); err != nil {
return gpLiveDataRes, err
}
return gpLiveDataRes, nil
How to lift this restriction
The text was updated successfully, but these errors were encountered:
liyuan1206010227
changed the title
QueryRow select 1 row tips:clickhouse [Decode]: live_data row 0: read length: size 11015713 too big (10485760 is maximum
use QueryRow select 1 row tips:clickhouse [Decode]: live_data row 0: read length: size 11015713 too big (10485760 is maximum
Jan 10, 2023
Hi @liyuan1206010227
First of all, sorry for the late catch-up on this issue.
Can you please give me more details on this issue? I guess issue title is an error message you get when QueryRow is called. Is that correct?
Hey I hit this issue and it occurs when you have a column with a lot of data in it. You can bump the size of MaxCompressionBuffer to fix the read problem but realistically, a more practical fix is to truncate the data to something reasonable before writing it to clickhouse.
I've also discovered that clickhouse generally doesn't do well with large columns (see ClickHouse/ClickHouse#7187) so bumping MaxCompressionBuffer isn't really going to solve your issue long term.
Not sure what @liyuan1206010227's data looks like but &gpLiveDataRes.LiveData looks like it's probably their issue (just compared to the other column names) and they should consider what data they're storing in it.
Version information:
github.com/ClickHouse/clickhouse-go/v2 v2.4.3
golang 1.19
my code :
How to lift this restriction
The text was updated successfully, but these errors were encountered: