Open DrewKimball opened 1 month ago
@DrewKimball also looks like st_dwithin(geography_a: geography, geography_b: geography, distance: float, use_spheroid: bool) → bool this query with useSpheroid also doesnt obey the indexing thing. Can you please fix for this too.
When
0
is passed as thedistance
argument for thest_dwithin
geospatial function, CRDB is unable to generate an index scan using an indexed column among the other arguments to the function. It should be possible to constrain a scan in this case, either by adding an optimizer rule to replacest_dwithin
with another function or expression, or by handling this case in the inverted constraint generation logic.Jira issue: CRDB-40347