You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zeroshade (via GitHub)" <gi...@apache.org> on 2024/11/11 17:33:22 UTC

Re: [PR] feat(arrow/cdata): Add Implementation of Async C Data interface [arrow-go]

zeroshade commented on code in PR #169:
URL: https://github.com/apache/arrow-go/pull/169#discussion_r1837001827


##########
arrow/cdata/exports.go:
##########
@@ -155,3 +190,229 @@ func exportStream(rdr array.RecordReader, out *CArrowArrayStream) {
 	h := cgo.NewHandle(cRecordReader{rdr: rdr, err: nil})
 	out.private_data = createHandle(h)
 }
+
+type cAsyncState struct {
+	ch        chan AsyncRecordBatchStream
+	queueSize uint64
+	ctx       context.Context
+}
+
+type taskState struct {
+	task CArrowAsyncTask
+	meta arrow.Metadata
+	err  error
+}
+
+//export asyncStreamOnSchema
+func asyncStreamOnSchema(self *CArrowAsyncDeviceStreamHandler, schema *CArrowSchema, addlMetadata *C.char) C.int {

Review Comment:
   parameter has been removed per updates to the abi spec, using `producer.additional_metadata` now.



-- 
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