Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.8.0
-
None
Description
The failure:
=================================== FAILURES ===================================
___________________ TestScanner.test_scanner_to_pandas_index ___________________
self = <kudu.tests.test_scanner.TestScanner testMethod=test_scanner_to_pandas_index>
@pytest.mark.skipif((not(kudu.CLIENT_SUPPORTS_PANDAS) and
(not(kudu.CLIENT_SUPPORTS_DECIMAL))),
reason="Pandas and Decimal support required to run this test.")
def test_scanner_to_pandas_index(self):
"""
This test confirms that a decimal column is coerced to a double when specified.
"""
import numpy as np
scanner = self.type_table.scanner()
df = scanner.to_pandas(coerce_float=True)
types = df.dtypes
> self.assertEqual(types[2], np.float64)
E AssertionError: dtype('O') != <type 'numpy.float64'>
kudu/tests/test_scanner.py:396: AssertionError
===================== 1 failed, 91 passed in 3.46 seconds ======================
Full log attached