Open crwen opened 6 months ago
maybe related: https://github.com/risinglightdb/risinglight/pull/795? But it's a known issue and if you want to fix that, please submit a pull request, thanks!
It seems like that the filter is true by default, instead of null. So the solution may be like this in #795?
https://github.com/risinglightdb/risinglight/blob/0e4a8469e74d6e8a468b58e82df9ac0d0311b5e3/src/planner/rules/range.rs#L88-L100
Here's my understanding: When there are predicates on primary key, we should push them down to the storage layer. Is that right?
But it seems not to work when I execute statements like
select pk from t where pk > 1
. And thefilter
passed toscan
function is alwaysNone
. It looks like these:Maybe the
true
in"(scan ?table ?columns true)"
should be replaced tonull
? Because it seems to work if I change it.