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

CONNECT Engine - Unable to Merge Mutliple SQLite

Details

    Description

      We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

      /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
      -----------------
      | id  |  name
      | f3  | Alice
      | 6g | Bob

      /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
      ------------------
      | id   |  name
      | s1  | Alison
      | 9y  | Robert

      MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';
       
      MariaDB > select * from people:
       
      ----------------
      | id  | name
      | f3   | Alice
      | 6g  | Bob
      | f3   | Alice
      | 6g  | Bob

      Attachments

        Activity

          bdarbyso Brandon Darbyson created issue -
          bdarbyso Brandon Darbyson made changes -
          Field Original Value New Value
          Description We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          -----------------
          | f3  | Alice
          | 6g | Bob
          -----------------

          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          ------------------
          | s1  | Alison
          | 9y  | Robert
          ------------------

          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          ----------------
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob
          ----------------

          We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob
          -----------------

          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert
          ------------------

          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob
          ----------------

          bdarbyso Brandon Darbyson made changes -
          Description We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob
          -----------------

          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert
          ------------------

          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob
          ----------------

          We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob


          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert


          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob

          elenst Elena Stepanova made changes -
          Description We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob


          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert


          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob

          We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          {noformat}
          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob
          {noformat}

          {noformat}
          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert
          {noformat}

          {noformat}
          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob
          {noformat}
          elenst Elena Stepanova made changes -
          Description We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          {noformat}
          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob
          {noformat}

          {noformat}
          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert
          {noformat}

          {noformat}
          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob
          {noformat}
          We're trying to merge two sqlite databases that are similar to those outlined below, and see the following when we try to query the resulting table in MariaDB:

          {noformat}
          /usr/local/data/SQLiteDB_1.dat < create table users ( id varchar(10), name varchar(24) );
          -----------------
          | id  |  name
          | f3  | Alice
          | 6g | Bob
          {noformat}

          {noformat}
          /usr/local/data/SQLiteDB_2.dat < create table users( id varchar(10), name varchar(24) );
          ------------------
          | id  |  name
          | s1  | Alison
          | 9y  | Robert
          {noformat}

          {code:sql}
          MariaDB > create table people ( id varchar(10), name varchar(24) ) ENGINE=CONNECT TABLE_TYPE=ODBC multiple=1 tabname='users' CONNECTION='DSN=SQLite3 Datasource;DBQ=/usr/local/data/SQLiteDB_*.dat;';

          MariaDB > select * from people:

          ----------------
          | id  | name
          | f3  | Alice
          | 6g  | Bob
          | f3  | Alice
          | 6g  | Bob
          {code}
          elenst Elena Stepanova made changes -
          Assignee Olivier Bertrand [ bertrandop ]
          bertrandop Olivier Bertrand made changes -
          Fix Version/s 10.0.22 [ 19700 ]
          Fix Version/s 10.1.9 [ 20301 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 71855 ] MariaDB v4 [ 149674 ]

          People

            bertrandop Olivier Bertrand
            bdarbyso Brandon Darbyson
            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.