Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
A RecordBatchStreamWriter initialised with a given schema will still allow writing RecordBatches that have different schemas. Example:
schema = pa.schema([pa.field('some_field', pa.int64())]) stream = pa.BufferOutputStream() writer = pa.RecordBatchStreamWriter(stream, schema) data = [pa.array([1.234])] batch = pa.RecordBatch.from_arrays(data, ['some_field']) # batch does not conform to schema assert batch.schema != schema writer.write_batch(batch) # no exception raised writer.close()
Attachments
Issue Links
- links to