You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Adam Kramer (Created) (JIRA)" <ji...@apache.org> on 2012/03/27 22:23:25 UTC

[jira] [Created] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
----------------------------------------------------------------------

                 Key: HIVE-2909
                 URL: https://issues.apache.org/jira/browse/HIVE-2909
             Project: Hive
          Issue Type: New Feature
            Reporter: Adam Kramer
            Priority: Minor


Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.

This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.

SHOW COLUMNS foo;
OK
bar, baz, tball, ds

...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246738#comment-13246738 ] 

Phabricator commented on HIVE-2909:
-----------------------------------

njain has commented on the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".

  You need to add the table as the input for inputs.

  I mean, if you are performing:

  show columns FOO;

  FOO should appear in the inputs

INLINE COMMENTS
  ql/src/test/queries/clientpositive/show_columns.q:4 add SHOW COLUMNS shcols_test also

REVISION DETAIL
  https://reviews.facebook.net/D2595

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Kevin Wilfong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421003#comment-13421003 ] 

Kevin Wilfong commented on HIVE-2909:
-------------------------------------

It looks like you've responded to all of Carl's comments except for the one regarding the partition column.  Given that this goes against the original spirit of the JIRA, which appeared to be getting a simple list of columns, and that Carl hasn't yet commented against this change, I think it's ok.

+1 running tests
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain reassigned HIVE-2909:
--------------------------------

    Assignee: Namit Jain  (was: Dikang Gu)
    
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-2909:
------------------------------

    Attachment: HIVE-2909.D2595.5.patch

dikanggu updated the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".
Reviewers: JIRA, njain

  address Namit's comments, add the partition columns.

REVISION DETAIL
  https://reviews.facebook.net/D2595

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
  ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/ShowColumnsDesc.java
  ql/src/test/queries/clientpositive/show_columns.q
  ql/src/test/results/clientpositive/show_columns.q.out

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-2909:
---------------------------------

    Status: Open  (was: Patch Available)

@Namit: please see my comments on phabricator. Thanks.
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-2909:
------------------------------

    Attachment: HIVE-2909.D2595.3.patch

dikanggu updated the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".
Reviewers: JIRA, njain

  address Namit's comments.

REVISION DETAIL
  https://reviews.facebook.net/D2595

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
  ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/ShowColumnsDesc.java
  ql/src/test/queries/clientpositive/show_columns.q
  ql/src/test/results/clientpositive/show_columns.q.out

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Carl Steinbach (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247891#comment-13247891 ] 

Carl Steinbach commented on HIVE-2909:
--------------------------------------

MySQL has a SHOW COLUMNS command: http://dev.mysql.com/doc/refman/5.0/en/show-columns.html

Seems like we should follow convention and try to duplicate that instead of inventing our own behavior. Also, I think returning each column name in a separate row is much more convenient (and consistent) for clients than forcing them to tokenize the names by splitting on ','
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413561#comment-13413561 ] 

Namit Jain commented on HIVE-2909:
----------------------------------

Incorporated all the comments other than the output of show columns.
Mysql output is very close to describe.

Here, the goal is just to get the names of the columns.
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421898#comment-13421898 ] 

Hudson commented on HIVE-2909:
------------------------------

Integrated in Hive-trunk-h0.21 #1565 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1565/])
    HIVE-2909. SHOW COLUMNS table_name; to provide a comma-delimited list of columns. (njain via kevinwilfong) (Revision 1365222)

     Result = SUCCESS
kevinwilfong : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1365222
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/ShowColumnsDesc.java
* /hive/trunk/ql/src/test/queries/clientnegative/show_columns1.q
* /hive/trunk/ql/src/test/queries/clientnegative/show_columns2.q
* /hive/trunk/ql/src/test/queries/clientnegative/show_columns3.q
* /hive/trunk/ql/src/test/queries/clientpositive/show_columns.q
* /hive/trunk/ql/src/test/results/clientnegative/show_columns1.q.out
* /hive/trunk/ql/src/test/results/clientnegative/show_columns2.q.out
* /hive/trunk/ql/src/test/results/clientnegative/show_columns3.q.out
* /hive/trunk/ql/src/test/results/clientpositive/show_columns.q.out

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412532#comment-13412532 ] 

Namit Jain edited comment on HIVE-2909 at 7/12/12 5:44 AM:
-----------------------------------------------------------

https://reviews.facebook.net/D4101


Added more tests, moved the errors to compile time.
Addressed Carl's comments
                
      was (Author: namit):
    https://reviews.facebook.net/D4101


Added more tests, moved the errors to compile time
                  
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413478#comment-13413478 ] 

Namit Jain commented on HIVE-2909:
----------------------------------

@Carl, can you review https://reviews.facebook.net/D4101 ?
Most of the comments should be addressed. I can address the remaining ones.
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412532#comment-13412532 ] 

Namit Jain commented on HIVE-2909:
----------------------------------

https://reviews.facebook.net/D4101


Added more tests, moved the errors to compile time
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247679#comment-13247679 ] 

Phabricator commented on HIVE-2909:
-----------------------------------

njain has commented on the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".

INLINE COMMENTS
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java:2037 dont sort the columns.

  Use the same order as used by describeTable

REVISION DETAIL
  https://reviews.facebook.net/D2595

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-2909:
-----------------------------

    Status: Patch Available  (was: Open)
    
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245944#comment-13245944 ] 

Phabricator commented on HIVE-2909:
-----------------------------------

dikanggu has commented on the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".

  There are something wrong with the unit test, and I'm still working it.


REVISION DETAIL
  https://reviews.facebook.net/D2595

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247771#comment-13247771 ] 

Phabricator commented on HIVE-2909:
-----------------------------------

njain has commented on the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".

INLINE COMMENTS
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java:2039 for partitioned tables, all partitioned columns also
   cols.addAll(tbl.getPartCols());


REVISION DETAIL
  https://reviews.facebook.net/D2595

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-2909:
------------------------------

    Attachment: HIVE-2909.D2595.1.patch

dikanggu requested code review of "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".
Reviewers: JIRA

  add the show columns in hive cli

  Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.

  This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.

  SHOW COLUMNS foo;
  OK
  bar, baz, tball, ds

  ...then I could just copy the first three and not the last.

TEST PLAN
  unit test, show_columns.q

REVISION DETAIL
  https://reviews.facebook.net/D2595

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
  ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/ShowColumnsDesc.java
  ql/src/test/queries/clientpositive/show_columns.q

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/5919/

Tip: use the X-Herald-Rules header to filter Herald messages in your client.

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-2909:
-----------------------------

    Status: Patch Available  (was: Open)
    
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Kevin Wilfong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Wilfong updated HIVE-2909:
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10.0
           Status: Resolved  (was: Patch Available)

Committed, thanks Namit.
                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Namit Jain
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch, HIVE-2909.D2595.5.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Namit Jain (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242575#comment-13242575 ] 

Namit Jain commented on HIVE-2909:
----------------------------------

https://cwiki.apache.org/Hive/phabricatorcodereview.html

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Dikang Gu (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dikang Gu reassigned HIVE-2909:
-------------------------------

    Assignee: Dikang Gu
    
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-2909:
------------------------------

    Attachment: HIVE-2909.D2595.4.patch

dikanggu updated the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".
Reviewers: JIRA, njain

  address Namit's comments.

REVISION DETAIL
  https://reviews.facebook.net/D2595

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
  ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/ShowColumnsDesc.java
  ql/src/test/queries/clientpositive/show_columns.q
  ql/src/test/results/clientpositive/show_columns.q.out

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch, HIVE-2909.D2595.3.patch, HIVE-2909.D2595.4.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-2909) SHOW COLUMNS table_name; to provide a comma-delimited list of columns.

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-2909:
------------------------------

    Attachment: HIVE-2909.D2595.2.patch

dikanggu updated the revision "HIVE-2909 [jira] SHOW COLUMNS table_name; to provide a comma-delimited list of columns.".
Reviewers: JIRA, njain

  fix the unit tests

  ant test -Dtestcase=TestCliDriver -Dqfile=show_columns.q -Doverwrite=true -Dtest.silent=false

REVISION DETAIL
  https://reviews.facebook.net/D2595

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
  ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java
  ql/src/java/org/apache/hadoop/hive/ql/plan/ShowColumnsDesc.java
  ql/src/test/queries/clientpositive/show_columns.q
  ql/src/test/results/clientpositive/show_columns.q.out

                
> SHOW COLUMNS table_name; to provide a comma-delimited list of columns.
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2909
>                 URL: https://issues.apache.org/jira/browse/HIVE-2909
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Adam Kramer
>            Assignee: Dikang Gu
>            Priority: Minor
>         Attachments: HIVE-2909.D2595.1.patch, HIVE-2909.D2595.2.patch
>
>
> Due to the way that SELECT * and partitioning works, it is frequently obnoxious to insert data into tables of the same schema.
> This could be fixed in a number of ways, all murky; this feature request reduces the obnoxicity of the current situation.
> SHOW COLUMNS foo;
> OK
> bar, baz, tball, ds
> ...then I could just copy the first three and not the last.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira