segmentMetadata returns null aggregators for realtime ingested segments

I’m using 0.9.0-rc2, the query returns null for the aggregators field for the realtime ingested segments, although it returns other fields correctly, is that by design or it’s a bug?

Something like

         "topic_id":{
            "type":"STRING",
            "hasMultipleValues":false,
            "size":5331,
            "cardinality":4,
            "errorMessage":null
         }
      },
      "size":542925,
      "numRows":6499,
      "aggregators":null
   },

Hey Jason,

Are you passing “analysisTypes”: [“aggregators”] in the query?

I just did (btw, it’s not on the doc http://druid.io/docs/0.9.0-rc3/querying/segmentmetadataquery.html), but it still returns null

{
   "intervals":[
      "2016-03-18T14:00:59+00:00/2016-03-18T14:33:01+00:00"
   ],
   "analysisTypes":[
      "aggregators"
   ],
   "queryType":"segmentMetadata",
   "dataSource":"air_events.contact_us_flow"
}

the result is like

[
   {
      "id":"subledger_entries_v04_2016-03-12T00:00:00.000Z_2016-03-13T00:00:00.000Z_2016-03-18T17:49:12.148Z",
      "intervals":null,
      "columns":{
         "__time":{
            "type":"LONG",
            "hasMultipleValues":false,
            "size":0,
            "cardinality":null,
            "errorMessage":null
         },
  ......
         "user_cor":{
            "type":"STRING",
            "hasMultipleValues":false,
            "size":0,
            "cardinality":0,
            "errorMessage":null
         }
      },
      "size":0,
      "numRows":3391,
      "aggregators":null
   }
]

Just tried batch ingested segments, the query returns null either.

Hey Jason,

I just tried this with 0.9.0-rc3 and it works for me on realtime segments. Are you sure you are running 0.9.0 across the board? How exactly are you creating your segments?

Fwiw what I was doing just now was using tranquility like in the streaming quickstart: http://druid.io/docs/0.9.0-rc3/tutorials/quickstart.html#load-streaming-data

I double checked, all the nodes are on 0.9.0-rc2.

I’m using tranquility 0.6.4, hasn’t upgraded it to 0.7.* yet, I’ll try, but would that be the problem?

The batch ingested (hadoop indexer) segments return null for the aggregators as well.

BTW, I don’t find the 0.9.0-rc3 tag on the main branch.