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

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

                Author: ASF GitHub Bot
            Created on: 21/Dec/20 14:18
            Start Date: 21/Dec/20 14:18
    Worklog Time Spent: 10m 
      Work Description: marton-bod opened a new pull request #1797:
URL: https://github.com/apache/hive/pull/1797


   ### What changes were proposed in this pull request?
   Add new config option to set a default storage handler class. If this config 
is set to a valid, existing class, the storage handler class won't have to be 
explicitly provided in the create table statement with the `STORED BY `clause, 
but will be 'inserted' under the hood.
   
   For example, if 
`hive.default.storage.handler.class=org.apache.iceberg.mr.hive.HiveIcebergStorageHandler`
 is set,
   then the command `CREATE TABLE abc (a int, b string) LOCATION ...` will be 
equivalent to 
   `CREATE TABLE abc (a int, b string) STORED BY 
'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' LOCATION ...`
   
   ### Why are the changes needed?
   In order to use existing create table commands for new table formats, such 
as Iceberg, without modification.
   
   ### Does this PR introduce _any_ user-facing change?
   new config option settable via beeline/hive-site
   
   ### How was this patch tested?
   q tests + manually with local run
   


----------------------------------------------------------------
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:
us...@infra.apache.org


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

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

> Add config to set a default storage handler class
> -------------------------------------------------
>
>                 Key: HIVE-24541
>                 URL: https://issues.apache.org/jira/browse/HIVE-24541
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Marton Bod
>            Assignee: Marton Bod
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Add a config param "hive.default.storage.handler.class" so we can set a 
> default storage handler class that can be used for all create table 
> statements. By default it would be an empty string, taking no effect.
> This would allow existing user queries to be reused for a new table format 
> for example, such as Iceberg. 
> For example, after setting in the config: hive.default.storage.handler.class= 
> org.apache.iceberg.mr.hive.HiveIcebergStorageHandler
> The query: CREATE TABLE abc (a int, b string) LOCATION ...
> would be equivalent to: CREATE TABLE abc (a int, b string) STORED BY 
> 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' LOCATION ...



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

Reply via email to