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

Python 3 Client Test Failure: test_table_column

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment