You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Jordan Birdsell (JIRA)" <ji...@apache.org> on 2016/09/12 02:25:20 UTC

[jira] [Created] (KUDU-1604) Python Client - Selecting Column By Index Changes Column Name to Index Value

Jordan Birdsell created KUDU-1604:
-------------------------------------

             Summary: Python Client - Selecting Column By Index Changes Column Name to Index Value
                 Key: KUDU-1604
                 URL: https://issues.apache.org/jira/browse/KUDU-1604
             Project: Kudu
          Issue Type: New Feature
          Components: python
    Affects Versions: 0.10.0
            Reporter: Jordan Birdsell
            Assignee: Jordan Birdsell


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)