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

Python Client - Selecting Column By Index Changes Column Name to Index Value

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 1.0.0
    • Component/s: python
    • Labels:
      None

      Description

      When getting a column from a table by its index, in the ColumnSchema returned, the name of the column is updated to the index.

      Example:
      >>> table.schema
      kudu.Schema {
      key int32 NOT NULL
      int_val int32
      string_val string
      PRIMARY KEY (key)
      }
      >>> table['int_val']
      Column(int_val, parent=example-table, type=int32)
      >>> table[1]
      Column(1, parent=example-table, type=int32)

      The ColumnSchema returned by an index reference should be the same as it is when referenced by name.

        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: