shwin commented on issue #10986: URL: https://github.com/apache/pinot/issues/10986#issuecomment-1641081767
@Jackie-Jiang `BETWEEN` returns more segments than `=` does (it picks up 3 segments where `=` picked up 2). If I query for a known $docId like: ``` select $segmentName, DATETRUNC('day', "blockTimestamp") "blockTimestamp_day", $docId from "0c98d17f-fb19-42fa-bca3-54b9f1750e0f_OFFLINE" where blockTimestamp_day = fromDateTime('2021-05-11', 'yyyy-MM-dd') and $segmentName = '0c98d17f-fb19-42fa-bca3-54b9f1750e0f_OFFLINE_1620669780000_1620707462000_1469_87cec857-1140-4a46-b722-53d869aa871d' and $docId = '16' ``` I get no results, even though that docId showed up in the `between` version of the query. Here's the plan for the between: ``` BROKER_REDUCE(limit:10) | 1 | 0 -- | -- | -- COMBINE_GROUP_BY | 2 | 1 PLAN_START(numSegmentsForThisPlan:2) | -1 | -1 GROUP_BY(groupKeys:$segmentName, $blockTimestamp$DAY, aggregations:count(*)) | 3 | 2 PROJECT($segmentName, $blockTimestamp$DAY) | 4 | 3 DOC_ID_SET | 5 | 4 FILTER_RANGE_INDEX(indexLookUp:range_index,operator:RANGE,predicate:$blockTimestamp$DAY BETWEEN '1620691200000' AND '1620691200000') | 6 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org