question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SQL Lab does not show table names in the dropdown box

See original GitHub issue

A 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

https://imgur.com/tfSfvyg

How to reproduce the bug

  1. Go to ‘SQL Lab > SQL Editor’
  2. Click on any Database in the dropdown box
  3. After refreshing the schema dropdown box, select any schema with tables
  4. 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:closed
  • Created 3 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
issue-label-bot[bot]commented, Sep 17, 2020

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.

1reaction
rimolivecommented, Sep 29, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found