Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2598

TestScanner.test_scanner_to_pandas_index failed on CentOS 6.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.0
    • python
    • 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

      Attachments

        1. jenkins_output.txt
          3.92 MB
          William Berkeley

        Activity

          People

            awong Andrew Wong
            wdberkeley William Berkeley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: