You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Larry McCay (Jira)" <ji...@apache.org> on 2020/03/22 16:47:00 UTC
[jira] [Created] (KNOX-2308) Add sortNumeric to KnoxShellTable for
Cols that are numeric but values are String
Larry McCay created KNOX-2308:
---------------------------------
Summary: 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
Fix For: 1.4.0
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)