Skip to content

Commit 5977ea0

Browse files
committed
Fix filtering by no filtrable attributes
1 parent 0c0d512 commit 5977ea0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/eurostat/filter_encoder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ int FilterEncoder::GetDimensionIndexFromColumnRef(const Expression &expr,
381381
}
382382

383383
column_t dim_index = column_ids[binding_index];
384+
if (dim_index >= data_structure.size()) {
385+
return -1;
386+
}
384387
return dim_index;
385388
}
386389

0 commit comments

Comments
 (0)