alvarowolfx commented on PR #421:
URL: https://github.com/apache/arrow-go/pull/421#issuecomment-3001031128

   I tried some silly implementation like this, but could not get it to work, 
it seems to be missing the same amount of data. Also, the `Payload` type 
doesn't have the `MessageType` as an exported field, so I can't detect if is a 
schema or a RecordBatch. Of course I can just skip the first message, but 
sounds hacky too.
   
   ```
   type schemalessPayloadWriter struct {
        buf *bytes.Buffer
   }
   
   func (f *schemalessPayloadWriter) Start() error { return nil }
   func (f *schemalessPayloadWriter) WritePayload(payload ipc.Payload) error {
        m := payload.Meta()
        defer m.Release()
        f.buf.Write(m.Bytes())
        err := payload.SerializeBody(f.buf)
        return err
   }
   
   var _ ipc.PayloadWriter = &schemalessPayloadWriter{}
   ```


-- 
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-unsubscr...@arrow.apache.org

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

Reply via email to