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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 1.0.0
    • python
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: