Skip to content
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

"Table [table_name] doesn't seem to exist, couldn't fetch metadata" #884

Closed
mahedi0244 opened this issue Aug 5, 2016 · 9 comments · Fixed by #7323
Closed

"Table [table_name] doesn't seem to exist, couldn't fetch metadata" #884

mahedi0244 opened this issue Aug 5, 2016 · 9 comments · Fixed by #7323

Comments

@mahedi0244
Copy link

I encountered this error after I replaced caravel db into MySQL. I am trying to add a mysql database that I want to work with. The database is loading properly as I see "seems ok" when I test the connection. But the error occurs when i want to add any valid table from my database.

@xrmx
Copy link
Contributor

xrmx commented Aug 5, 2016

The error should be quite clear. Do you have that table in the db? Also friendly remainder that github issues are for reporting bugs not for support requests. There's a mailing list for that :)

@tmsnvd
Copy link

tmsnvd commented Aug 7, 2016

Exactly the same problem with postgresql.
That error message is simply wrong, because table exists and connected user has all rights.

@xrmx
Copy link
Contributor

xrmx commented Aug 7, 2016

@topazas if you know what's wrong then please fix it and open a pull request, it would be great :)

@mistercrunch
Copy link
Member

This should be something simple like your connection string (URL) isn't pointing to the right database (schema). That or maybe you have something funky going on in the table name (space, unicode, ...)

@tmsnvd
Copy link

tmsnvd commented Aug 8, 2016

Yesterday tried to upgrade caravel and dependencies (with pip), tested with couple PG users and connection string variants, no spaces or any funky symbols, other software uses the same user with no problems (RoR app, scala app with jdbc connection, simple python flask rest app). Caravel spits error messages :( Mainly, it cannot read table columns. It finds DB and tables, but cannot read column information.

Today evening gonna debug and look further in to code... For now cannot confirm bug.

@aljones
Copy link
Contributor

aljones commented Aug 8, 2016

I had this problem with a mssql db when the column type field was not long enough to hold a column's type I was trying to add. I edited the column directly in the db and promptly forgot about it...

If I remember correctly there was a stack trace in the caravel log that sent me in that direction, so check log.

@mahedi0244
Copy link
Author

mahedi0244 commented Aug 8, 2016

@mistercrunch I just figured out that, I am actually able to load some tables from my database,
but the error occurs for the tables where there is at least one column which type is varchar, even though the table name is 100% correct.
(just to let you know: previously, I loaded and worked with my database in caravel properly when I used sqlite as caravel database)

@huangzhongming
Copy link

huangzhongming commented Sep 21, 2016

this maybe coursed by some field type in you data table exceed the caravel table:table_columns,field:type 's size limit
I used MySQL: error when add table.
(1406, "Data too long for column 'type' at row 1") [SQL: 'INSERT INTO table_columns (created_on, changed_on, table_id, column_name, verbose_name, is_dttm, is_active, type, groupby, count_distinct, sum, max, min, filterable, expression, description, python_date_format, database_expression, created_by_fk, changed_by_fk) VALU

@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 579 days. Feel free to comment and request for this issue to be reopened.

@dpgaspar dpgaspar mentioned this issue Apr 18, 2019
3 tasks
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants