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

Spurious extra columns in spider queries sent to data nodes

    XMLWordPrintable

Details

    Description

      As observed in MDEV-29502[1], spider query rewrites may add a spurious extra column in queries sent to data nodes.

      For example, in the test spider.direct_aggregate_part and spider/bg.direct_aggregate_part, the query to spider table query "SELECT SUM(a) FROM ta_l2" is rewritten as "select sum(`a`),min(`a`) from `auto_test_remote`.`ta_r2` limit 2". The "limit 2" could come from the knowledge there are two rows in the remote table, but the extra "min(`a`)" makes no sense.

      [1] https://jira.mariadb.org/browse/MDEV-29502?focusedCommentId=264225&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-264225

      This probably affects other versions too.

      Attachments

        Activity

          People

            ycp Yuchen Pei
            ycp Yuchen Pei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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