[MCOL-3845] SQLYog Getting Error On Cross Engine Join Queries Created: 2020-02-28  Updated: 2020-04-24  Resolved: 2020-04-24

Status: Closed
Project: MariaDB ColumnStore
Component/s: MDB Plugin
Affects Version/s: 1.4.3
Fix Version/s: 1.4.4

Type: Bug Priority: Major
Reporter: Todd Stoffel (Inactive) Assignee: Roman
Resolution: Cannot Reproduce Votes: 0
Labels: None

Sprint: 2020-4, 2020-5, 2020-6, 2020-7

 Description   

When attempting to run a query in the SQLyog client using the columnstore cross engine join feature this error is returned:

fatal error running mysql_real_connect() in libmysql_client lib (1049) (Unknown database 'my_database')

Running the same query from a command line client yields the correct results.



 Comments   
Comment by David Hall (Inactive) [ 2020-02-28 ]

This happens when performing a cross-engine join only.

Comment by Todd Stoffel (Inactive) [ 2020-03-01 ]

David.Hall yes and only with SQLyog. I tested on a Windows machine using Table Plus (https://tableplus.com/) and had no problem. I tried many clients on MacOS and had no problem. For me, SQLyog was throwing an 1815 error on every other run of the same query.

Comment by Roman [ 2020-04-24 ]

Can't reproduce with the current 1.4 code.

MariaDB [test]> show status like "columnstore%";
+-------------------------+----------+
| Variable_name           | Value    |
+-------------------------+----------+
| Columnstore_commit_hash | 69255538 |
| Columnstore_version     | 1.4.4    |
+-------------------------+----------+
2 rows in set (0.002 sec)
 
MariaDB [test]> explain select * from t1;
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
| id   | select_type   | table | type | possible_keys | key  | key_len | ref  | rows | Extra |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
|    1 | PUSHED SELECT | NULL  | NULL | NULL          | NULL | NULL    | NULL | NULL | NULL  |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
1 row in set (0.001 sec)
 
MariaDB [test]> select * from t1;
Empty set (0.014 sec)
 
MariaDB [test]> select * from t1;
Empty set (0.012 sec)
 
MariaDB [test]> explain select * from t1;
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
| id   | select_type   | table | type | possible_keys | key  | key_len | ref  | rows | Extra |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
|    1 | PUSHED SELECT | NULL  | NULL | NULL          | NULL | NULL    | NULL | NULL | NULL  |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
1 row in set (0.001 sec)
 
MariaDB [test]> explain select * from t1;
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
| id   | select_type   | table | type | possible_keys | key  | key_len | ref  | rows | Extra |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
|    1 | PUSHED SELECT | NULL  | NULL | NULL          | NULL | NULL    | NULL | NULL | NULL  |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
1 row in set (0.001 sec)
 
MariaDB [test]> explain select * from t1;
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
| id   | select_type   | table | type | possible_keys | key  | key_len | ref  | rows | Extra |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
|    1 | PUSHED SELECT | NULL  | NULL | NULL          | NULL | NULL    | NULL | NULL | NULL  |
+------+---------------+-------+------+---------------+------+---------+------+------+-------+
1 row in set (0.001 sec)
 
MariaDB [test]> select * from t1;
Empty set (0.012 sec)
 
MariaDB [test]> show create table t1;
+-------+--------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                       |
+-------+--------------------------------------------------------------------------------------------------------------------+
| t1    | CREATE TABLE `t1` (
  `a` int(11) NOT NULL,
  `b` varchar(10) NOT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1 |
+-------+--------------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 sec)

Generated at Thu Feb 08 02:45:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.