I am ingesting my data in druid using realtime node. Total no of records ingested is 40 million but when I query I see output of only 13 million record. I can see that there is no rejection of events in logs but still count is less than my given data ingest. When going through druid doc it says:
“To count the number of ingested rows of data, include a count aggregator at ingestion time, and a longSum aggregator at query time.”
What is the meaning of this line ?
I am giving following line while ingesting data:
"metricsSpec" : [{
"type" : "count",
"name" : "COUNT"
},
And querying using below lines:
{
"queryType": "groupBy",
"dataSource": "abcd",
"granularity": "all",
"dimensions": [],
"aggregations": [
{"type": "count", "name": "count"},
{"type": "count", "name": "UNIQUE_CUSTOMERS", "fieldName": "CUSTOMER_ID"}
],
"intervals": [""]
}
It gives me very13m counts(I am sure it is returning druid row counts.), but If I try change query from(as suggested in above lines) {"type": "count", "name": "count"}, to {"type": "longSum", "name": "count"}, it gives syntax error.
I even tried querying it using segmentQuery but this also gives me same 13m counts:
{
"queryType":"segmentMetadata",
"dataSource":"abcd",
"intervals":[""]
}
Can anyone suggest any way to know how many original rows were ingested by druid ?
--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/90bd5c7b-625b-4620-8ccd-8d1532a42973%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gian
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/17ef8b1e-669d-4031-abf8-390c1a07d4e3%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/17ef8b1e-669d-4031-abf8-390c1a07d4e3%40googlegroups.com.