Oguzhan Mangir
03/20/2021, 3:52 PMKishore G
Oguzhan Mangir
03/20/2021, 4:05 PMMayank
Mayank
Oguzhan Mangir
03/20/2021, 4:16 PMMayank
Oguzhan Mangir
03/20/2021, 4:20 PMMayank
Mayank
Oguzhan Mangir
03/20/2021, 4:25 PMselect abc, xyz, sum(x)..
from table
group by abc, xyz
where sellerId = 123 and orderDate > X and orderDate < y
the other query example can be like that;
select orderDate, abc, xyz, sum(x)..
from table
group by orderDate, abc, xyz
where sellerId = 123 and orderDate > X and orderDate < y
Oguzhan Mangir
03/20/2021, 4:26 PMMayank
Mayank
Oguzhan Mangir
03/20/2021, 4:30 PMOguzhan Mangir
03/20/2021, 5:50 PMorderDate
as time field. Totally 4 segments created. When i send below query;
select * from orders
query stats:
numSegmentsQueried: 4
numSegmentsProcessed: 4
numSegmentsMatched: 4
And, when i send below query;
select * from orders where orderDate > 1619458466000
query stats:
numSegmentsQueried: 4
numSegmentsProcessed: 1
numSegmentsMatched: 1
Seems pinot prune segments based on min/max orderDate of segment metadata, right?
But i can't see min/max orderDate in realtime segment metadata. How can i see it?Mayank
Oguzhan Mangir
03/20/2021, 5:57 PM/segments/{tableName}/{segmentName}/metadata
looking to metadata.properties?Mayank
Mayank
Mayank
Mayank
Oguzhan Mangir
03/20/2021, 6:04 PM{
"segment.realtime.endOffset": "3",
"segment.time.unit": "MILLISECONDS",
"segment.start.time": "1616250195000",
"segment.flush.threshold.size": "50000",
"segment.realtime.startOffset": "0",
"segment.end.time": "1616250220000",
"segment.total.docs": "3",
"segment.table.name": "orders_REALTIME",
"segment.realtime.numReplicas": "1",
"segment.creation.time": "1616261054496",
"segment.realtime.download.url": "<http://10.212.234.26:9000/segments/orders/orders__0__0__20210320T1724Z>",
"segment.name": "orders__0__0__20210320T1724Z",
"segment.index.version": "v3",
"custom.map": null,
"segment.flush.threshold.time": null,
"segment.type": "REALTIME",
"segment.crc": "1271635767",
"segment.realtime.status": "DONE"
}
I can't see min/max orderDate values. Is that segment can be still located in memory? But it should be closed about 30 minutes agoOguzhan Mangir
03/20/2021, 6:07 PM"IN_PROGRESS"
Mayank
Oguzhan Mangir
03/20/2021, 6:18 PMOguzhan Mangir
03/20/2021, 6:47 PMnumSegmentsQueried: 5
numSegmentsProcessed: 2
numSegmentsMatched: 1
what is the difference between numSegmentsProcessed and numSegmentsMatched? I've looked document, but i did not understand it. Only one segment matched, but pinot processed 2 segments?Mayank
numSegmentsProcessed
is the number of segments that were processed/looked-at. And numSegmentsMatched
can be <= numSegmentsProcessed
, because even if a segment is processed there may be 0 records matched in that segment.Mayank
Oguzhan Mangir
03/20/2021, 8:05 PM