hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-14469) Read results for Druid Timeseries query
Date Mon, 08 Aug 2016 11:51:20 GMT
Jesus Camacho Rodriguez created HIVE-14469:
----------------------------------------------

             Summary: 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 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}



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

Mime
View raw message