SQL Lab does not show table names in the dropdown box
See original GitHub issueA clear and concise description of what the bug is.
While selecting Database, schema, and table to inspect the table structure, I noticed that the table dropdown box only shows the schema name, not the table name. If I try selecting any of the options, I get an An error occurred while fetching table metadata
error.
Expected results
I can see the columns that belong to the table
Actual results
An An error occurred while fetching table metadata
error message appear
Screenshots
How to reproduce the bug
- Go to ‘SQL Lab > SQL Editor’
- Click on any Database in the dropdown box
- After refreshing the schema dropdown box, select any schema with tables
- Check the tables dropdown box. It should appear only the schema name, not the tables name
Environment
- superset version:
0.37.1
- python version:
Python 3.6.12
- node.js version: N/A
- npm version: N/A
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (5 by maintainers)
Top Results From Across the Web
SQL Lab does not show table names in the dropdown box
Go to 'SQL Lab > SQL Editor' · Click on any Database in the dropdown box · After refreshing the schema dropdown box,...
Read more >Table name is not displayed on drop down list in SQL map ...
Table name is not displayed on drop down list. On the Query tab of an input record's field in an SQL map the...
Read more >SQL Server 2012 drop-down boxes are not working for table ...
After a recent upgrade from SQL Server 2008 to SQL Server 2012, my Management Studio no longer provides the drop-down boxes of table...
Read more >Use Superset with Fusion SQL - Lucidworks Documentation
Apache Superset is a powerful and widely used SQL exploration and visualization tool. This topic explains different ways to use it with Fusion...
Read more >Query Multiple Tables with Joins - dp-080-Transact-SQL
In this lab, you'll use the Transact-SQL SELECT statement to query multiple tables in the adventureworks database. For your reference, the following diagram ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
#bug
to this issue, with a confidence of 0.96. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
It is a bug in pyhive:
https://github.com/dropbox/PyHive/blob/master/pyhive/sqlalchemy_hive.py#L364
That line should not return
row[0]
since the result will be the schema name, not the table name. I’m going to propose a fix in pyhive.Meanwhile, can this issue keep opened until pyhive team accept and fixes in latest releases?
Edit: Problem is even worse. See https://github.com/dropbox/PyHive/issues/146 I’ll see how to workaround this.