Skip to content

Commit

Permalink
fix: address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha committed Aug 29, 2023
1 parent cc0ef2f commit 267f190
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions go/arrow/array/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,21 +265,14 @@ func (tbl *simpleTable) String() string {

for i := 0; i < int(tbl.NumCols()); i++ {
col := tbl.Column(i)
chunked := col.Data()
chunks := chunked.Chunks()
o_array := new(strings.Builder)
o_array.WriteString(col.Field().Name + ": [")
numChunks := len(chunks)
for j := 0; j < numChunks; j++ {
chunk := chunked.Chunk(j)
if j != numChunks-1 {
o_array.WriteString(chunk.String() + ", ")
} else {
o_array.WriteString(chunk.String())
o.WriteString(col.Field().Name + ": [")
for j, chunk := range col.Data().Chunks() {
if j != 0 {
o.WriteString(", ")
}

o.WriteString(chunk.String())
}
o.WriteString(o_array.String() + "]\n")
o.WriteString("]\n")
}
return o.String()
}
Expand Down

0 comments on commit 267f190

Please sign in to comment.