You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/07/06 21:01:00 UTC

[jira] [Work logged] (HIVE-23765) Use ORC file format by default when creating transactional table

     [ https://issues.apache.org/jira/browse/HIVE-23765?focusedWorklogId=455095&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-455095 ]

ASF GitHub Bot logged work on HIVE-23765:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Jul/20 21:00
            Start Date: 06/Jul/20 21:00
    Worklog Time Spent: 10m 
      Work Description: xiaomengzhang opened a new pull request #1213:
URL: https://github.com/apache/hive/pull/1213


   …l table
   
   When table has property that transactional is 'true' and transactional_properties
   is not 'insert_only', make fileformat ORC.
   
   ## NOTICE
   
   Please create an issue in ASF JIRA before opening a pull request,
   and you need to set the title of the pull request which starts with
   the corresponding JIRA issue number. (e.g. HIVE-XXXXX: Fix a typo in YYY)
   For more details, please see https://cwiki.apache.org/confluence/display/Hive/HowToContribute
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 455095)
    Remaining Estimate: 0h
            Time Spent: 10m

> Use ORC file format by default when creating transactional table
> ----------------------------------------------------------------
>
>                 Key: HIVE-23765
>                 URL: https://issues.apache.org/jira/browse/HIVE-23765
>             Project: Hive
>          Issue Type: New Feature
>          Components: HiveServer2
>    Affects Versions: 4.0.0
>            Reporter: Xiaomeng Zhang
>            Assignee: Xiaomeng Zhang
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently we support "transactional" keyword in CREATE TABLE command. But if not add "stored as ORC", the table created is insert_only.
> We want to add a feature that when table is transactional (either using "transanctional" keyword or adding tblproperties ('transactional'='true'), the table created by default will be ORC, and 'transactional_properties'='default'.
>  
> {code:java}
> 0: jdbc:hive2://localhost:10000> create transactional table xm_tran(id int);
> +-------------------------------+----------------------------------------------------+----------------------------------------------------+
> |           col_name            |                     data_type                      |                      comment                       |
> +-------------------------------+----------------------------------------------------+----------------------------------------------------+
> | id                            | int                                                |                                                    |
> |                               | NULL                                               | NULL                                               |
> | # Detailed Table Information  | NULL                                               | NULL                                               |
> | Database:                     | default                                            | NULL                                               |
> | OwnerType:                    | USER                                               | NULL                                               |
> | Owner:                        | hive                                               | NULL                                               |
> | CreateTime:                   | Thu Jun 18 14:01:45 PDT 2020                       | NULL                                               |
> | LastAccessTime:               | UNKNOWN                                            | NULL                                               |
> | Retention:                    | 0                                                  | NULL                                               |
> | Location:                     | file:/tmp/warehouse/managed/xm_tran                | NULL                                               |
> | Table Type:                   | MANAGED_TABLE                                      | NULL                                               |
> | Table Parameters:             | NULL                                               | NULL                                               |
> |                               | COLUMN_STATS_ACCURATE                              | {\"BASIC_STATS\":\"true\",\"COLUMN_STATS\":{\"id\":\"true\"}} |
> |                               | bucketing_version                                  | 2                                                  |
> |                               | numFiles                                           | 0                                                  |
> |                               | numRows                                            | 0                                                  |
> |                               | rawDataSize                                        | 0                                                  |
> |                               | totalSize                                          | 0                                                  |
> |                               | transactional                                      | true                                               |
> |                               | transactional_properties                           | insert_only                                        |
> |                               | transient_lastDdlTime                              | 1592514105                                         |
> |                               | NULL                                               | NULL                                               |
> | # Storage Information         | NULL                                               | NULL                                               |
> | SerDe Library:                | org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe | NULL                                               |
> | InputFormat:                  | org.apache.hadoop.mapred.TextInputFormat           | NULL                                               |
> | OutputFormat:                 | org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat | NULL                                               |
> | Compressed:                   | No                                                 | NULL                                               |
> | Num Buckets:                  | -1                                                 | NULL                                               |
> | Bucket Columns:               | []                                                 | NULL                                               |
> | Sort Columns:                 | []                                                 | NULL                                               |
> +-------------------------------+----------------------------------------------------+----------------------------------------------------+
> {code}



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