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

Python 3 Client Test Failure: test_table_column

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Public beta
    • Fix Version/s: 1.1.0
    • Component/s: python
    • Labels:
      None

      Description

      Python 3 requires an explicit encodinng to be specified when casting to bytes, in python 2 bytes is synonymous with string so this is a non-issue. This should be updated to use the compat module that has accounted for this difference with the frombytes method.

      self = <kudu.tests.test_client.TestClient testMethod=test_table_column>

      def test_table_column(self):
      table = self.client.table(self.ex_table)
      cols = [(table['key'], 'key', 'int32'),
      (table[1], 'int_val', 'int32'),
      (table[-1], 'unixtime_micros_val', 'unixtime_micros')]

      for col, name, type in cols:
      > assert col.name == bytes(name)
      E TypeError: string argument without an encoding

        Attachments

          Activity

            People

            • Assignee:
              jtbirdsell Jordan Birdsell
              Reporter:
              jtbirdsell Jordan Birdsell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: