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

SELECT from empty OQGraph table results in query being killed.

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 10.0.10
    • None
    • None
    • 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

      Attachments

        Activity

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

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

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

          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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.