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
Bug#32975221: 5.7.29+ REGRESSION, SPATIAL INDEX NOT USED
ANYMORE FOR MBRCONTAINS
Description:
============
This is a regression from the fix for Bug#29770705. The fix
introduced cloning of range tree for a special case when we
have a predicate having an AND condition ("pred1 AND pred2")
and one part of this AND condition is not a simple
predicate(an OR condition - "pred2"). For such a case, we
needed to clone the range tree created for "pred1". However,
when we clone the range tree, we do not copy the "geometry
flag" associated with the range tree. This results in
ignoring the spatial index available to do the range scan.
Fix
===
Copy the `rkey_func_flag` from original tree if GEOM_FLAG is
set.
On 8.0, this issue is not reproducible because the use_count
handling is different and clone() is not invoked. However it
is clear that for some case it might fail. So we need the
changes, hence added the unit test for the same.
Change-Id: I36312bc2c11db4e4e77d67e9443a98b37ade38e8
0 commit comments