joykent99 commented on pull request #10332: URL: https://github.com/apache/druid/pull/10332#issuecomment-704406915
> @joykent99 but firstString/lastString should be working fine? > > Could you please explain how to use it inside the query? Let's say we added a metric to be `lastString` aggregator during ingestion time. And this metric has `OTHER` type: > > How can it be queried, something like say `SELECT * WHERE test='JarBot'`? Since the data for `lastString` aggregator stored in segments are in `SerializablePair`, to get the final result, we issue the query like this: ``` select <your_grouping_column>, latest(test, 1024) from wikipedia-test group by <your_grouping_column> ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
