You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In certain scenarios, the optimizer chooses a covering index scan for NLJ inner leg, however it is also putting a fetch between the NLJ operator and the (correlated) predicate filter operator, this causes plan execution to fail with a missing correlation error.
com.apple.foundationdb.record.RecordCoreException: com.apple.foundationdb.record.RecordCoreException: Missing binding for __corr_q4
The optimizer should either push the fetch down (rendering the covering scan less appealing) or choose a different access path all together I think.
Here is an example:
createtablet1(id bigint, parent bigint, primary key(id))
-- create a secondary index childIdx on id and parent
now:
selectb.id, b.parentfrom t1 as a, t1 as b wherea.parent=b.idandb.id>40
ends up with this incorrect plan:
The text was updated successfully, but these errors were encountered:
In certain scenarios, the optimizer chooses a covering index scan for NLJ inner leg, however it is also putting a fetch between the NLJ operator and the (correlated) predicate filter operator, this causes plan execution to fail with a missing correlation error.
The optimizer should either push the fetch down (rendering the covering scan less appealing) or choose a different access path all together I think.
Here is an example:
now:
ends up with this incorrect plan:
The text was updated successfully, but these errors were encountered: