Hello everyone, I have a hybrid table. Hybrid tabl...
# troubleshooting
a
Hello everyone, I have a hybrid table. Hybrid table returns 0 for a count query while OFFLINE table returns a different value for the same query. Do you have any idea why it's happening? I am using Apache Pinot 1.2.0. Query is:
select count(*) from test where messageTime >= 1738699200000 and messageTime < 1738702800000 limit 10
b
a
@Bolek Ziobrowski thank you for your response. both queries are returning the same value now although i didn't do anything. Do you have any idea why would this situation might have occured?
I was also sending histogram queries to hybrid table and those are the results between same queries in different times. It seems 0's are getting filled up. i don't understand why
b
Please have a look at the link I gave, it explains how that boundary works as data is being ingested.
As for histogram queries - I can't say anything without query and table schema.
a
select dateTrunc('hour', messageTime) as "timeGroup", distinctCount(id) from test where messageTime >= 1738530000000 and messageTime <1738789200000 group by "timeGroup" limit 10000
i was trying to get distinct id count in hour intervals.
b
How does it compare to querying test_OFFLINE and test_REALTIME ?
a
image.png,image.png,image.png,image.png
i am very sorry, this log was taken from an application that queries pinot. sending query from pinot ui returns correct values
i read the page you've sent but i still don't have any idea how to solve my main question 😅
b
First I think we'd need to check whether time boundary is the issue here. Do you get wrong results when you query hybrid table and good when you query offline and realtime separately ?
a
yes that's correct
just tried this. same query for hybrid, offline and realtime table
b
okay. Could you now go to 'Cluster Manager' | 'Default Tenant' | 'test_offline' , pick latest segment and check 'segment.end.time.raw' in metadata (on the right hand side) ?
a
{
"segment.start.time": "1738778406083",
"segment.time.unit": "MILLISECONDS",
"segment.size.in.bytes": "120697862",
"segment.end.time": "1738799999613",
"segment.total.docs": "3059215",
"segment.creation.time": "1738829294023",
"segment.push.time": "1738829313402",
"segment.end.time.raw": "1738799999613",
"segment.start.time.raw": "1738778406083",
"segment.index.version": "v3",
"segment.crc": "3941284456",
"segment.download.url": "http://pinot-controller-0.pinot-controller-headless.default.svc.cluster.local:9000/segments/test/test_1738778406083_1738799999613_0"
}
i have added the config below to my offline table and problem fixed.
Copy code
"ingestionConfig": {
    "batchIngestionConfig": {
      "segmentIngestionType": "APPEND",
      "segmentIngestionFrequency": "HOURLY"
    }
  }
the problem was happening around the time boundary value. i have checked it in broker /debug/timeBoundary/{tableName} endpoint.