Slackbot
03/22/2023, 12:05 PMJohn Kowtko
03/22/2023, 12:52 PMselect * from wikipedia where mod(TIME_EXTRACT(__time, 'EPOCH'),100) = 7
Your divisor value and what you compare it to will allow you to pull out virtually any random slice of records from the datasource.Rasika Govinnage
03/22/2023, 11:23 PMJohn Kowtko
03/23/2023, 12:31 AMselect floor(__time to MINUTE), earliest(__time,1000) from wikipedia group by 1
but use earliest to pull each column out of the group. Not sure if this is still going to fully scan the segments or go in selectively.
Remember also, this is a columnar database. So it shouldn't pull the other columns until it has found which rows are satified by the filter condition ...