MCPcopy Index your code
hub / github.com/uber/aresdb / shouldSkipLiveBatch

Method shouldSkipLiveBatch

query/aql_processor.go:1377–1386  ·  view source on GitHub ↗

shouldSkipLiveBatch will determine whether we can skip processing a live batch by checking time filter and eligible main table common filters. The batch must be non nil.

(b *memstore.LiveBatch)

Source from the content-addressed store, hash-verified

1375// shouldSkipLiveBatch will determine whether we can skip processing a live batch by checking time filter and
1376// eligible main table common filters. The batch must be non nil.
1377func (qc *AQLQueryContext) shouldSkipLiveBatch(b *memstore.LiveBatch) bool {
1378 candidatesFilters := []expr.Expr{qc.OOPK.TimeFilters[0], qc.OOPK.TimeFilters[1]}
1379 candidatesFilters = append(candidatesFilters, qc.OOPK.MainTableCommonFilters...)
1380 for _, filter := range candidatesFilters {
1381 if shouldSkipLiveBatchWithFilter(b, filter) {
1382 return true
1383 }
1384 }
1385 return false
1386}
1387
1388// shouldSkipLiveBatchWithFilter will check max and min for the corresponding column against the filter express and
1389// determines whether we should skip processing this live batch.

Callers 2

processShardMethod · 0.95

Calls 1

Tested by

no test coverage detected