vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.89k stars 1.21k forks source link

fix the bug that index scan rule chooses a wrong geo index #5922

Closed jievince closed 3 months ago

jievince commented 3 months ago

What type of PR is this?

What problem(s) does this PR solve?

Issue(s) number:

Fix https://github.com/vesoft-inc/nebula/issues/5919

Description:

When geo indexes and other indexes are on a tag/edge type, the services will crash because it may wrongly choose a non-geo index for a geo-related query.

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

Affects:

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....