Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-662

Unexpected results in cross engine join

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.8
    • Fix Version/s: 1.0.12, 1.1.1
    • Component/s: ExeMgr
    • Labels:
      None
    • Environment:
      CentOS 7
    • Sprint:
      2017-9, 2017-20, 2017-21

      Description

      The following query produces unexpected results. The predicates are acting as an OR instead of AND.

      select
       fk
       ,tags
       ,sum(clicks) 
      from
       cs_test cs
      inner join
       dim_test d on cs.fk=d.id
      where
       locate('cpa',tags) > 0
       AND locate('1clickflow',tags) > 0
      group by 1,2
      

      Results:

      fk tags clicks
      1 cpa 60
      3 cpa|1clickflow 1200
      2 cpa|1clickflow 6

      Expected results:

      fk tags clicks
      3 cpa|1clickflow 1200
      2 cpa|1clickflow 6

      The query is produced by Tableau and cannot be tweaked. mysqldump file attached in order to create example tables.

        Attachments

          Activity

            People

            Assignee:
            dleeyh Daniel Lee
            Reporter:
            gcleaves Geoff Cleaves
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.