You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Naresh P R (Jira)" <ji...@apache.org> on 2020/10/21 02:23:00 UTC

[jira] [Resolved] (HIVE-24282) Show columns shouldn't sort output columns unless explicitly mentioned.

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

Naresh P R resolved HIVE-24282.
-------------------------------
    Resolution: Fixed

> Show columns shouldn't sort output columns unless explicitly mentioned.
> -----------------------------------------------------------------------
>
>                 Key: HIVE-24282
>                 URL: https://issues.apache.org/jira/browse/HIVE-24282
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Naresh P R
>            Assignee: Naresh P R
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> CREATE TABLE foo_n7(c INT, a INT, b INT);
> show columns in foo_n7;
> {code:java}
> // current output
> a
> b 
> c
> // expected
> c
> a 
> b{code}
> HIVE-18373 changed the original behaviour to sorted output.
> Suggesting to provide an optional keyword sorted to sort the show columns output
> eg., 
> {code:java}
> show sorted columns in foo_n7;
> a
> b 
> c
> show columns in foo_n7
> c
> a 
> b{code}
>  



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