-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mysql connector cannot retrieve tables which includes underscore in table name #4983
Comments
Somehow it is related with capital letters:
presto:
|
For sure it is related with capital letters in mysql database name. Here is a test to reproduce the problem: kokosing/trino@c94675f @martint Currently presto converts all the schema (database) names to lower case. Therefore when source database have different name casing (? I am not sure this word) presto is losing mapping between its schema and source schema. This also leads to ambiguities errors when source database have two schemas which differ only in letter casing. In order to fix that issue we would need to make presto to be case sensitive. It could be done in the same way as other databases do: quoted name - case sensitive, not quoted case insensitive. If you agree I will create an issue for that. @darkrwe As a workaround you can use 'tutorial_1' instead of 'TUTORIAL_1' and your queries should work. |
Yep, it's a known issue that Presto only supports lowercase identifiers: #2863 |
@cberner We could close this as a duplicate. |
presto-server-0.139 still have mysql connector problem .
Create database in mysql:
CREATE DATABASE TUTORIAL_1;
USE TUTORIAL_1;
CREATE TABLE USERS (userid VARCHAR(15), gender CHAR(1), Age SMALLINT,country VARCHAR(50), SIGN_UP VARCHAR(50));
presto> SHOW TABLES FROM mysql.TUTORIAL_1;
Table
(0 rows)
Query 20160301_082814_00005_fjdbm, FINISHED, 2 nodes
Splits: 2 total, 2 done (100.00%)
0:00 [0 rows, 0B] [0 rows/s, 0B/s]
The text was updated successfully, but these errors were encountered: