Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14217 Druid integration
  3. HIVE-14469

Read results for Druid Timeseries query

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • Druid integration
    • None

    Description

      Format of results for Druid Timeseries queries is as follows:

      [
        {
          "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 }
        }
      ]
      

      Out of this query results, we will generate Hive records with the following format:

      [ 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)]
      

      Attachments

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: