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

[Examples] COVID Vaccine dashboard contains query errors #12528

Closed
3 tasks done
octaviancorlade opened this issue Jan 14, 2021 · 4 comments
Closed
3 tasks done

[Examples] COVID Vaccine dashboard contains query errors #12528

octaviancorlade opened this issue Jan 14, 2021 · 4 comments
Assignees
Labels
P1 Priority item - Major

Comments

@octaviancorlade
Copy link
Contributor

In a clean master or latest branch, with docker-compose up the COVID Vaccine dashboard contains many errors like this:

superset_app             | Traceback (most recent call last):
superset_app             |   File "/app/superset/connectors/sqla/models.py", line 1320, in query
superset_app             |     df = self.database.get_df(sql, self.schema, mutator)
superset_app             |   File "/app/superset/models/core.py", line 390, in get_df
superset_app             |     self.db_engine_spec.execute(cursor, sqls[-1])
superset_app             |   File "/app/superset/db_engine_specs/base.py", line 909, in execute
superset_app             |     cursor.execute(query)
superset_app             | psycopg2.errors.UndefinedColumn: column "stage_of_development" does not exist
superset_app             | LINE 2:            WHEN Stage_of_Development = 'Pre-clinical' THEN '...
superset_app             |                         ^
superset_app             | HINT:  Perhaps you meant to reference the column "covid_vaccines.Stage_of_Development".

This is expected with column names that are not all lowercase in Postgres, unless they are wrapped in double quotes

Expected results

The example dashboards should work on a clean installation

Actual results

The example COVID Vaccine dashboard contains many errors. The error in one of the charts is also displayed different than the others, but the problem seems to be the same in the database.

Screenshots

image

How to reproduce the bug

git clone [email protected]:apache/superset.git
cd superset
docker-compose up

then login and open the dashboard

Environment

(please complete the following information):

  • superset version: Superset 0.999.0dev
  • python version: Python 3.7.9
  • node.js version: v12.20.1
  • Docker version 20.10.2, build 2291f61
  • docker-compose version 1.27.4, build 40524192

Checklist

Make sure to follow these steps 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.
@octaviancorlade octaviancorlade added the #bug Bug report label Jan 14, 2021
@junlincc junlincc added P1 Priority item - Major and removed P1 Priority item - Major #bug Bug report labels Jan 14, 2021
@junlincc
Copy link
Member

junlincc commented Jan 14, 2021

thanks for reporting! multiple users have reported, mistaking it as a functional issue.
I consider this as a 1.0 release blocker. hopefully we can address is soon.

@eschutho

@eschutho
Copy link
Member

Thanks @junlincc for flagging. We're looking at this now.

@betodealmeida betodealmeida self-assigned this Jan 14, 2021
@betodealmeida
Copy link
Member

Working on it

@junlincc
Copy link
Member

manually tested, confirmed issues is resolved in master, we will have it in for 1.0 release. thanks for the quick fix! @betodealmeida @eschutho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 Priority item - Major
Projects
None yet
Development

No branches or pull requests

4 participants