Fix Cython compilation, verify pyarrow.Table.from_batches still works

Change-Id: I93e1744b45f0d3dce65ac11a43bc7726ce3209ce
This commit is contained in:
Wes McKinney committed 2017-01-06 19:21:59 -05:00
1 parent af28755af4
commit f3cb170020
1 file changed
+3 -5
+3 -5
View File
@@ -600,17 +600,15 @@ cdef class Table:
shared_ptr[CTable] c_table
RecordBatch batch
Table table
c_string c_name
if name is None:
name = b''
else:
name = tobytes(name)
c_name = b'' if name is None else tobytes(name)
for batch in batches:
c_batches.push_back(batch.sp_batch)
with nogil:
check_status(CTable.FromRecordBatches(name, c_batches, &c_table))
check_status(CTable.FromRecordBatches(c_name, c_batches, &c_table))
table = Table()
table.init(c_table)