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

SELECT from empty OQGraph table results in query being killed.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 10.0.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      CentOS 6

      Description

      I have an empty backing table and an OQGraph table pointing to it. When trying to run a SELECT query on the empty table, the query gets killed:

      MariaDB [(none)]> use mydb
      Database changed
      MariaDB [mydb]> CREATE TABLE oq_backing (
      -> origid INT UNSIGNED NOT NULL,
      -> destid INT UNSIGNED NOT NULL,
      -> PRIMARY KEY (origid, destid),
      -> KEY (destid)
      -> );
      Query OK, 0 rows affected (0.40 sec)

      MariaDB [mydb]> CREATE TABLE oq_graph (
      -> latch VARCHAR(32) NULL,
      -> origid BIGINT UNSIGNED NULL,
      -> destid BIGINT UNSIGNED NULL,
      -> weight DOUBLE NULL,
      -> seq BIGINT UNSIGNED NULL,
      -> linkid BIGINT UNSIGNED NULL,
      -> KEY (latch, origid, destid) USING HASH,
      -> KEY (latch, destid, origid) USING HASH
      -> )
      -> ENGINE=OQGRAPH
      -> data_table='oq_backing' origid='origid' destid='destid';
      Query OK, 0 rows affected (0.14 sec)

      MariaDB [mydb]> SELECT * FROM oq_graph;
      Killed

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            pprkut Heinz Wiesinger added a comment -

            Testcase is close enough to the one provided in MDEV-5891, so probably the same bug.

            Show
            pprkut Heinz Wiesinger added a comment - Testcase is close enough to the one provided in MDEV-5891 , so probably the same bug.
            Hide
            elenst Elena Stepanova added a comment -

            Duplicate of either MDEV-5988 as mentioned above, or of MDEV-5891 (on a debug build it fails with the same assertion), or both.

            Show
            elenst Elena Stepanova added a comment - Duplicate of either MDEV-5988 as mentioned above, or of MDEV-5891 (on a debug build it fails with the same assertion), or both.

              People

              • Assignee:
                Unassigned
                Reporter:
                pprkut Heinz Wiesinger
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: