Skip to content

Commit

Permalink
improve writing strings to output
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 25, 2024
1 parent cac6f4f commit 9f6b19e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/lmd/datarow.go
Original file line number Diff line number Diff line change
Expand Up @@ -1333,11 +1333,12 @@ func (d *DataRow) WriteJSONLocalColumn(jsonwriter *jsoniter.Stream, col *Column)
jsonwriter.WriteString(d.dataStringLarge[col.Index].String())
case StringListCol:
jsonwriter.WriteArrayStart()
for i, s := range d.dataStringList[col.Index] {
list := d.dataStringList[col.Index]
for i := range d.dataStringList[col.Index] {
if i > 0 {
jsonwriter.WriteMore()
}
jsonwriter.WriteString(s)
jsonwriter.WriteString(list[i])
}
jsonwriter.WriteArrayEnd()
case IntCol:
Expand Down

0 comments on commit 9f6b19e

Please sign in to comment.