KKcorps commented on PR #11499: URL: https://github.com/apache/pinot/pull/11499#issuecomment-1722769705
> Do we really need this API? We can retrieve the same information by querying the table and ask for `$segmentName` and `$docId`. From the query we can even get the history of the primary key by adding query option `skipUpsert=true`. > > The query API won't query all servers though, so we might need to issue the query multiple times as of now. We can consider adding a query option (or check for explicit filter on `$hostName`) to route the query to a specific server Yes, the reason for the API is to check in case we get no query results, if there's metadata for some PK in the state or not. There have been multiple cases where we get no results for PK but when we set `skipUpsert = true`, we start getting some results. The API will help debug in those scenarios. -- 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