(schema, batches)
| 117 | |
| 118 | |
| 119 | def make_serialized(schema, batches): |
| 120 | with pa.BufferOutputStream() as sink: |
| 121 | with pa.ipc.new_stream(sink, schema) as out: |
| 122 | for batch in batches: |
| 123 | out.write(batch) |
| 124 | return sink.getvalue() |
| 125 | |
| 126 | |
| 127 | @needs_cffi |
no test coverage detected