You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "vibhatha (via GitHub)" <gi...@apache.org> on 2023/08/29 00:30:07 UTC

[GitHub] [arrow] vibhatha commented on a diff in pull request #35580: GH-35296: [Go] Add arrow.Table.String()

vibhatha commented on code in PR #35580:
URL: https://github.com/apache/arrow/pull/35580#discussion_r1308077557


##########
go/arrow/array/table.go:
##########
@@ -257,6 +258,32 @@ func (tbl *simpleTable) Release() {
 	}
 }
 
+func (tbl *simpleTable) String() string {
+	o := new(strings.Builder)
+	o.WriteString(tbl.Schema().String())
+	o.WriteString("\n")
+
+	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 + ": [")

Review Comment:
   You're correct, I updated the code. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org