Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3321

LP:857066 - Wrong result with ST_DISJOINT when using an index

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The following query:

      SELECT count FROM linestring FORCE KEY ( linestring_key ) WHERE ST_DISJOINT( GeomFromText('LINESTRING( 4045 3043 , 3987 3025 , 3757 3154 )') , linestring_key );

      returns 300 rows even though the same query executed with a full table scan or in PostGis returns 3711 rows.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            philipstoev Philip Stoev added a comment -

            Dataset for this bug
            LPexportBug857066_bug857066.sql

            Show
            philipstoev Philip Stoev added a comment - Dataset for this bug LPexportBug857066_bug857066.sql
            Hide
            philipstoev Philip Stoev added a comment -

            Re: Wrong result with ST_DISJOINT when using an index

            Show
            philipstoev Philip Stoev added a comment - Re: Wrong result with ST_DISJOINT when using an index
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 857066

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 857066

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: