hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HIVE-14543) Create Druid table without specifying data source
Date Fri, 21 Oct 2016 11:28:59 GMT

    [ https://issues.apache.org/jira/browse/HIVE-14543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15594844#comment-15594844
] 

Jesus Camacho Rodriguez edited comment on HIVE-14543 at 10/21/16 11:28 AM:
---------------------------------------------------------------------------

[~bslim], this was not implemented. Thus you can extract the name from the table properties;
we assume that the user specifies it as e.g.:

{code}
TBLPROPERTIES ("druid.datasource" = "wikipedia")
{code}

Check for usage of DRUID_DATA_SOURCE in common/src/java/org/apache/hadoop/hive/conf/Constants.java
to see how to retrieve it.


was (Author: jcamachorodriguez):
[~bslim], this was not implemented. Thus you can extract the name from the table properties;
we assume that the user specifies it as e.g.:

{code}
TBLPROPERTIES ("druid.datasource" = "wikipedia")
{code}

Check for usage of DRUID_DATA_SOURCE in common/src/java/org/apache/hadoop/hive/conf/Constants.java
to see how to read it.

> Create Druid table without specifying data source
> -------------------------------------------------
>
>                 Key: HIVE-14543
>                 URL: https://issues.apache.org/jira/browse/HIVE-14543
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Druid integration
>    Affects Versions: 2.2.0
>            Reporter: Jesus Camacho Rodriguez
>
> We should be able to omit the Druid datasource from the TBLPROPERTIES. In that case,
the Druid datasource name should match the Hive table name.
> {code:sql}
> CREATE TABLE druid_table_1
> STORED BY 'org.apache.hadoop.hive.druid.DruidStorageHandler';
> TBLPROPERTIES ("druid.address" = "localhost");
> {code}
> For instance, the statement above creates a table that references the Druid datasource
"druid_table_1".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message