mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
added testcase for schema not equal, disabled now
This commit is contained in:
1 parent
c3d7e8fd82
commit
bd2a7209f8
1 file changed
+12
@@ -73,6 +73,18 @@ def test_recordbatchlist_to_pandas():
|
||||
assert_frame_equal(data, result)
|
||||
|
||||
|
||||
def test_recordbatchlist_errors():
|
||||
data1 = pd.DataFrame({'c1': np.array([1], dtype='uint32')})
|
||||
data2 = pd.DataFrame({'c1': np.array([4.0, 5.0], dtype='float64')})
|
||||
|
||||
batch1 = pa.RecordBatch.from_pandas(data1)
|
||||
batch2 = pa.RecordBatch.from_pandas(data2)
|
||||
|
||||
# TODO: Enable when subclass of unittest.testcase
|
||||
#with self.assertRaises(pyarrow.ArrowException):
|
||||
# self.assertRaises(pa.dataframe_from_batches([batch1, batch2]))
|
||||
|
||||
|
||||
def test_table_basics():
|
||||
data = [
|
||||
pa.from_pylist(range(5)),
|
||||
|
||||
Reference in new issue
Block a user