Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.11.4, 1.12.2, 1.13.0
Description
=================================== FAILURES ===================================
_______________ StreamPandasConversionTests.test_empty_to_pandas _______________
self = <pyflink.table.tests.test_pandas_conversion.StreamPandasConversionTests testMethod=test_empty_to_pandas>
def test_empty_to_pandas(self):
> table = self.t_env.from_pandas(self.pdf, self.data_type)
pyflink/table/tests/test_pandas_conversion.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyflink/table/table_environment.py:1462: in from_pandas
arrow_schema = pa.Schema.from_pandas(pdf, preserve_index=False)
pyarrow/types.pxi:1315: in pyarrow.lib.Schema.from_pandas
???
.tox/py37-cython/lib/python3.7/site-packages/pyarrow/pandas_compat.py:519: in dataframe_to_types
type_ = pa.lib.ndarray_to_arrow_type(values, type)
pyarrow/array.pxi:53: in pyarrow.lib._ndarray_to_arrow_type
???
pyarrow/array.pxi:64: in pyarrow.lib._ndarray_to_type
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pyarrow.lib.ArrowTypeError: Did not pass numpy.dtype object
pyarrow/error.pxi:108: ArrowTypeError
_________________ StreamPandasConversionTests.test_from_pandas _________________
self = <pyflink.table.tests.test_pandas_conversion.StreamPandasConversionTests testMethod=test_from_pandas>
def test_from_pandas(self):
> table = self.t_env.from_pandas(self.pdf, self.data_type, 5)
pyflink/table/tests/test_pandas_conversion.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Attachments
Issue Links
- links to