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)
| 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. |
| 1377 | func (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. |
no test coverage detected