You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2016/08/16 07:25:20 UTC
[jira] [Updated] (HIVE-14469) Read results for Druid Timeseries
query
[ https://issues.apache.org/jira/browse/HIVE-14469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesus Camacho Rodriguez updated HIVE-14469:
-------------------------------------------
Description:
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}
was:
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 LongWritable(1325376000000L), new LongWritable(0), new FloatWritable(1.0F), new FloatWritable(2.2222F) ]
[ new LongWritable(1325462400000L), new LongWritable(2), new FloatWritable(3.32F), new FloatWritable(4F)]
{code}
> 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
>
> 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)