barrel_design_pushdown (barrel_design v0.1.0)
View SourceKey bounds from BQL WHERE conditions on v.key.
Only conditions that can narrow the scan are used, and BQL applies every condition again to the rows, so the bounds may be wider than the result but never narrower:
- equalities on
v.key[0],v.key[1], ... from component 0 form a key prefix; - one range (
<,<=,>,>=, orLIKEstem%'') on the next component bounds the scan inside that prefix; - on a scalar key,
v.key = X, ranges and LIKE onv.key.
For grouped rows only components below the group level count: WHERE filters the groups the view returns. v.key = X on an array key means membership in BQL, so it is never used.