Skip to content

Commit 507217c

Browse files
committed
fix(query): skip empty Stile batches before prefetching
1 parent 2709649 commit 507217c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/db/sqlengine/stile/predicate.cc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ static_assert(kBlock <= detail::Node::kMaxBatch);
557557

558558
void Predicate::eval_block(const int64_t *rows, size_t count, bool checked,
559559
detail::Tf *out) const {
560+
if (count == 0) return;
560561
if (checked && num_rows_ == 0) {
561562
std::fill(out, out + count, detail::kTfNull);
562563
return;

0 commit comments

Comments
 (0)