From 0592918165d3277a5ccb495762a384b09282ddb3 Mon Sep 17 00:00:00 2001 From: badboynt1 Date: Wed, 8 Jan 2025 10:33:29 +0800 Subject: [PATCH] fix --- pkg/vm/engine/disttae/txn_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vm/engine/disttae/txn_table.go b/pkg/vm/engine/disttae/txn_table.go index 46de42dd84038..39dcfcbacdd73 100644 --- a/pkg/vm/engine/disttae/txn_table.go +++ b/pkg/vm/engine/disttae/txn_table.go @@ -577,7 +577,7 @@ func (tbl *txnTable) CollectTombstones( // - exprs: A slice of expressions used to filter data. // - txnOffset: Transaction offset used to specify the starting position for reading data. func (tbl *txnTable) Ranges(ctx context.Context, rangesParam engine.RangesParam) (data engine.RelData, err error) { - if len(rangesParam.BlockFilters) == 0 && !rangesParam.DontSupportRelData { + if len(rangesParam.BlockFilters) == 0 && rangesParam.PreAllocBlocks > 128 && !rangesParam.DontSupportRelData { //no block filters, no agg optimization, not partition table, then we can return object list instead of block list return tbl.getObjList(ctx, rangesParam) }