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

Issue with "IDB-1002 incompatible column type specified for join condition" error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • Icebox
    • ExeMgr
    • None

    Description

      Build tested: 1.1.0-1

      Columnstore returns an error while MariaDB returned results.

      How to reproduce:

      In InnoDB (InnoDB engine in 1.1.0-1):

      create table t1 (cidx int, cchar8 char(8), cint int) engine innodb;
      create table t2 (cidx int, cchar8 char(8), cint int) engine innodb;
      insert into t1 values (1,'1',1);
      insert into t1 values (2,'2',2);
      insert into t2 values (1,'1',1);
      insert into t2 values (2,'2',2);

      MariaDB [d2]> select * from t1, t2 where t1.cidx = t2.cidx and t1.cchar8 = t2.cint;
      ------------------------------+

      cidx cchar8 cint cidx cchar8 cint

      ------------------------------+

      1 1 1 1 1 1
      2 2 2 2 2 2

      ------------------------------+
      2 rows in set (0.00 sec)

      insert two more rows with characters for the cchar8 column:

      insert into t1 values (3,'hello',3);
      insert into t1 values (4,'world',4);
      insert into t2 values (3,'hello',3);
      insert into t2 values (4,'world',4);

      MariaDB [d2]> select * from t1, t2 where t1.cidx = t2.cidx and t1.cchar8 = t2.cint;
      ------------------------------+

      cidx cchar8 cint cidx cchar8 cint

      ------------------------------+

      1 1 1 1 1 1
      2 2 2 2 2 2

      ------------------------------+
      2 rows in set, 2 warnings (0.00 sec)

      MariaDB [d2]> show warnings;
      ---------------------------------------------------------

      Level Code Message

      ---------------------------------------------------------

      Note 1051 Unknown table 'infinidb_vtable.$vtable_1313'
      Warning 1292 Truncated incorrect DOUBLE value: 'hello '
      Warning 1292 Truncated incorrect DOUBLE value: 'world '

      ---------------------------------------------------------
      3 rows in set (0.00 sec)

      • Not sure what the first warning is. InnoDB should not use vtable

      The same test in columnstore

      MariaDB [d1]> select * from t1, t2 where t1.cidx = t2.cidx and t1.cchar8 = t2.cint;
      ERROR 1815 (HY000): Internal error: IDB-1002: 't1' and 't2' have incompatible column type specified for join condition.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dleeyh Daniel Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.