You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/03/17 09:43:52 UTC

[GitHub] [arrow] hunght3101 opened a new issue #9737: [Golang] How i create input format for IPC Reader?

hunght3101 opened a new issue #9737:
URL: https://github.com/apache/arrow/issues/9737


   user@
   In library
   ```
   // NewReader returns a reader that reads records from an input stream.
   func NewReader(r io.Reader, opts ...Option) (*Reader, error) {
   	return NewReaderFromMessageReader(NewMessageReader(r), opts...)
   }
   ```
   How i create parameter `r` right when i call NewReader function ?
   Example : 
   ```
   var r io.Reader
   r = strings.NewReader(input)
   rr, err := ipc.NewReader(r, ipc.WithSchema(schema), ipc.WithAllocator(mem))
   	if err != nil {
   		fmt.Println(err)
   	}
   ```
   How i create input ? 


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

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



[GitHub] [arrow] zeroshade commented on issue #9737: [Golang] How i create input format for IPC Reader?

Posted by GitBox <gi...@apache.org>.
zeroshade commented on issue #9737:
URL: https://github.com/apache/arrow/issues/9737#issuecomment-802215524


   The input should be an IPC stream coming from either a file or from some other source. One way to do so would be to use the ipc.NewWriter to construct a writer and write `array.Record` objects to it, then use the resulting output.


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

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



[GitHub] [arrow] emkornfield closed issue #9737: [Golang] How i create input format for IPC Reader?

Posted by GitBox <gi...@apache.org>.
emkornfield closed issue #9737:
URL: https://github.com/apache/arrow/issues/9737


   


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

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



[GitHub] [arrow] emkornfield commented on issue #9737: [Golang] How i create input format for IPC Reader?

Posted by GitBox <gi...@apache.org>.
emkornfield commented on issue #9737:
URL: https://github.com/apache/arrow/issues/9737#issuecomment-805457038


   Closing.  Please if there are follow-ups let's discuss on the user@ mailing list.  One nice addition might be some canonical documentation on how to use the Go API if one doesn't exist already.


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

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