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

Read results for Druid GroupBy 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 GroupBy queries is as follows:

      [ 
        {
          "version" : "v1",
          "timestamp" : "2012-01-01T00:00:00.000Z",
          "event" : {
            "country" : "India",
            "device" : "phone",
            "total_usage" : 88,
            "data_transfer" : 29.91233453,
            "avg_usage" : 60.32
          }
        }, 
        {
          "version" : "v1",
          "timestamp" : "2012-01-01T00:00:12.000Z",
          "event" : {
            "country" : "Spain",
            "device" : "pc",
            "total_usage" : 16,
            "data_transfer" : 172.93494959,
            "avg_usage" : 6.333333
          }
        }
      ]
      

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

      [ new TimestampWritable(new Timestamp(1325376000000L)), new Text("India"), new Text("phone"), new LongWritable(88), new FloatWritable(29.91233453F), new FloatWritable(60.32F) ]
      [ new TimestampWritable(new Timestamp(1325376012000L)), new Text("Spain"), new Text("pc"), new LongWritable(16), new FloatWritable(172.93494959F), new FloatWritable(6.333333F) ]
      

      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: