This commit is contained in:
Aliaksandr Valialkin 2024-05-11 08:07:49 +02:00
parent a55e01e406
commit 1d209f9168
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -121,9 +121,10 @@ func (shard *pipeUniqProcessorShard) writeBlock(br *blockResult) bool {
if len(byFields) == 0 {
// Take into account all the columns in br.
keyBuf := shard.keyBuf
cs := br.getColumns()
for i := range br.timestamps {
keyBuf = keyBuf[:0]
for _, c := range br.getColumns() {
for _, c := range cs {
v := c.getValueAtRow(br, i)
keyBuf = encoding.MarshalBytes(keyBuf, bytesutil.ToUnsafeBytes(c.name))
keyBuf = encoding.MarshalBytes(keyBuf, bytesutil.ToUnsafeBytes(v))