[ 
https://issues.apache.org/jira/browse/KUDU-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jordan Birdsell updated KUDU-1604:
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0
           Status: Resolved  (was: In Review)

Fixed with 
https://github.com/cloudera/kudu/commit/64f3795960db0ea1ffb6b8fba83156f0a2977539

> 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
>             Fix For: 1.0.0
>
>
> 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)

Reply via email to