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 04:22:20 UTC
[jira] [Commented] (KUDU-1604) Python Client - Selecting Column By
Index Changes Column Name to Index Value
[ https://issues.apache.org/jira/browse/KUDU-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15483017#comment-15483017 ]
Jordan Birdsell commented on KUDU-1604:
---------------------------------------
Patch submitted for review: http://gerrit.cloudera.org:8080/4378
> 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)