Browse Source

Update weed/query/engine/hybrid_message_scanner.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7185/head
Chris Lu 1 month ago
committed by GitHub
parent
commit
920becfa5f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      weed/query/engine/hybrid_message_scanner.go

11
weed/query/engine/hybrid_message_scanner.go

@ -520,11 +520,12 @@ func (hms *HybridMessageScanner) scanPartitionHybridWithStats(ctx context.Contex
}
// STEP 4: Fallback to sample data if no results found
if len(results) == 0 {
sampleResults := hms.generateSampleHybridData(options)
results = append(results, sampleResults...)
// Note: OFFSET and LIMIT will be applied at the end of the main scan function
}
// STEP 4: Fallback to sample data if no results found
// if len(results) == 0 {
// sampleResults := hms.generateSampleHybridData(options)
// results = append(results, sampleResults...)
// // Note: OFFSET and LIMIT will be applied at the end of the main scan function
// }
return results, stats, nil
}

Loading…
Cancel
Save