[ 
https://issues.apache.org/jira/browse/KNOX-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17067746#comment-17067746
 ] 

ASF subversion and git services commented on KNOX-2308:
-------------------------------------------------------

Commit b22505022b17388c099e419185409a35455f1827 in knox's branch 
refs/heads/master from Larry McCay
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=b225050 ]

KNOX-2308 - Add sortNumeric to KnoxShellTable for Cols that are numeric but 
values are String (#300)

Change-Id: I773e5ee9805347de36d5e4921a026f91b35c54b7

> Add sortNumeric to KnoxShellTable for Cols that are numeric but values are 
> String
> ---------------------------------------------------------------------------------
>
>                 Key: KNOX-2308
>                 URL: https://issues.apache.org/jira/browse/KNOX-2308
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: KnoxShell
>            Reporter: Larry McCay
>            Assignee: Larry McCay
>            Priority: Major
>             Fix For: 1.4.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Tables that are created from CSV files contain cols with only String types 
> even though cols can be created with specific types. Sorting numeric values 
> as Strings result in improper sorts. This patch provides a sortNumeric which 
> internally converts the col to doubles and then does the sort. It sorts the 
> table properly but leaves the col unchanged within the table itself.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to