Update weed/query/engine/hybrid_message_scanner.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Chris Lu
2025-09-04 10:02:32 -07:00
committed by GitHub
co-authored by gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent d572443c79
commit 920becfa5f
+6 -5
View File
@@ -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
}