Skip to content

Commit caef3f9

Browse files
committed
Fix a bug in the prefiltering.
Signed-off-by: Johannes Kalmbach <[email protected]>
1 parent f9dd013 commit caef3f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/engine/IndexScan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,8 @@ std::pair<Result::LazyResult, Result::LazyResult> IndexScan::prefilterTables(
836836

837837
if (!metaBlocks.has_value()) {
838838
// Return empty results
839-
return {Result::LazyResult{}, Result::LazyResult{}};
839+
return {filterLeftSide ? Result::LazyResult{} : std::move(input),
840+
Result::LazyResult{}};
840841
}
841842

842843
auto state = std::make_shared<SharedGeneratorState>(

0 commit comments

Comments
 (0)