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

Jesus Camacho Rodriguez resolved HIVE-14469.
--------------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0

Pushed in HIVE-14217.

> Read results for Druid Timeseries query
> ---------------------------------------
>
>                 Key: HIVE-14469
>                 URL: https://issues.apache.org/jira/browse/HIVE-14469
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Druid integration
>    Affects Versions: 2.2.0
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>             Fix For: 2.2.0
>
>
> Format of results for Druid Timeseries queries is as follows:
> {code}
> [
>   {
>     "timestamp": "2012-01-01T00:00:00.000Z",
>     "result": { "sample_name1": 0, "sample_name2": 1.0, "sample_divide": 
> 2.2222 } 
>   },
>   {
>     "timestamp": "2012-01-02T00:00:00.000Z",
>     "result": { "sample_name1": 2, "sample_name2": 3.32, "sample_divide": 4 }
>   }
> ]
> {code}
> Out of this query results, we will generate Hive records with the following 
> format:
> {code}
> [ new TimestampWritable(new Timestamp(1325376000000L)), new LongWritable(0), 
> new FloatWritable(1.0F), new FloatWritable(2.2222F) ]
> [ new TimestampWritable(new Timestamp(1325462400000L)), new LongWritable(2), 
> new FloatWritable(3.32F), new FloatWritable(4F)]
> {code}



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

Reply via email to