Doesn't read_lance() support limit pushdown? ```cl...
# daft-dev
c
Doesn't read_lance() support limit pushdown?
Copy code
class LanceDBScanOperator(ScanOperator, SupportsPushdownFilters):
    ...
    def can_absorb_filter(self) -> bool:
        return isinstance(self, SupportsPushdownFilters)

    def can_absorb_limit(self) -> bool:
        return False

    def can_absorb_select(self) -> bool:
        return False
r
Yes. That method indicates a global limit, which is not currently possible. Lance supports local limit pushdown.
c
That method indicates a global limit, which is not possibly possible.
Hi @Robert Howell May I ask why it's impossible?
r
In single node computing, local≈global. For distributed, we apply the limit locally at each source - but still have a limit operator applied on the cumulative results of each source, hence it wasn’t totally absorbed. The method is poorly named and unused, so to be fair, it’s not informative and has caused this confusion before.