hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phabricator (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-2822) Add JSON output to the hive ddl commands
Date Mon, 02 Apr 2012 17:57:25 GMT

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

Phabricator updated HIVE-2822:
------------------------------

    Attachment: HIVE-2822.D2475.2.patch

ctdean updated the revision "HIVE-2822 [jira] Add JSON output to the hive ddl commands".
Reviewers: JIRA, ashutoshc

  - Change control variable to "hive.ddl.output.format"
  - Fixed negative tests that were failing because of changed error
    messages
  - Create org.apache.hadoop.hive.ql.metadata.formatting
  - Remove unused import in MetaDataFormatter
  - Fix mulitple stack trace generation in DDLTask.java
  - Be more consistent about errors going through the formatter in
    DDLTask
  - Added template types to JsonMetaDataFormatter and MapBuilder.
  - Merged a few methods in the formatters.  Don't actually agree with
    this as it makes long methods longer, but got carried awaya and did
    it anyway.

  Unchanged:
  - MetaDataFormatter error codes - I think ints are clearer here, since
    the names are just human readable cues for the actual int error
    messages.

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

AFFECTED FILES
  common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
  ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/JsonMetaDataFormatter.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MapBuilder.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/MetaDataFormatUtils.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatter.java
  ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java
  ql/src/test/queries/clientpositive/describe_database_json.q
  ql/src/test/queries/clientpositive/describe_table_json.q
  ql/src/test/queries/clientpositive/misc_json.q
  ql/src/test/queries/clientpositive/partitions_json.q
  ql/src/test/results/clientnegative/column_rename1.q.out
  ql/src/test/results/clientnegative/column_rename4.q.out
  ql/src/test/results/clientnegative/database_create_already_exists.q.out
  ql/src/test/results/clientnegative/database_drop_does_not_exist.q.out
  ql/src/test/results/clientpositive/describe_database_json.q.out
  ql/src/test/results/clientpositive/describe_table_json.q.out
  ql/src/test/results/clientpositive/misc_json.q.out
  ql/src/test/results/clientpositive/partitions_json.q.out

                
> Add JSON output to the hive ddl commands
> ----------------------------------------
>
>                 Key: HIVE-2822
>                 URL: https://issues.apache.org/jira/browse/HIVE-2822
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Chris Dean
>            Assignee: Chris Dean
>         Attachments: HIVE-2822.03-branch0-8.patch, HIVE-2822.03.patch, HIVE-2822.03b.patch,
HIVE-2822.04-branch-08.patch, HIVE-2822.05-branch0-8-1.patch, HIVE-2822.05-branch0-8.patch,
HIVE-2822.05.patch, HIVE-2822.D2475.1.patch, HIVE-2822.D2475.2.patch, hive-json-01-branch0-8.patch,
hive-json-01.patch, hive-json-02-branch0-8.patch, hive-json-02.patch
>
>
> The goal is to have an option to produce JSON output of the DDL commands that is easily
machine parseable.
> For example, "desc my_table" currently gives
> {noformat}
>     id    bigint
>     user  string
> {noformat} 
> and we want to allow a json output:
> {noformat}
>     {
>       "columns": [
>         {"name": "id", "type": "bigint"},
>         {"name": "user", "type": "string"}
>       ]
>     }
> {noformat} 

--
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

        

Mime
View raw message