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

SQL Lab + Postgres bug with quotes (psycopg2.ProgrammingError) #4064

Closed
2 of 3 tasks
oxystin opened this issue Dec 15, 2017 · 4 comments
Closed
2 of 3 tasks

SQL Lab + Postgres bug with quotes (psycopg2.ProgrammingError) #4064

oxystin opened this issue Dec 15, 2017 · 4 comments
Labels
inactive Inactive for >= 30 days

Comments

@oxystin
Copy link

oxystin commented Dec 15, 2017

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

Superset version

0.22.1

Expected results

Workable visualization

Actual results

  1. Simple Query
SELECT "SCHEDULED_ARRIVAL",
       "COUNTRY"
FROM public.flights
WHERE "DAY_OF_WEEK"='4'

screen shot 2017-12-15 at 05 09 57

  1. Click "Visualize"and get the error "psycopg2.ProgrammingError column "scheduled_arrival" does not exist"

screen shot 2017-12-15 at 05 10 59

SUM value without quotes is passed to the query:

screen shot 2017-12-15 at 05 34 17

Tell me how it can be quickly fixed?
Thank you.

Steps to reproduce

@rumbin
Copy link
Contributor

rumbin commented Dec 16, 2017

When it comes to fixing this issue, I'd like to remind that - if quotes were to be generally introduced for column names -
we'll risk the same kind of regression that once was observed for quoted temporal column names: #3844

@rumbin
Copy link
Contributor

rumbin commented Dec 16, 2017

As a quick workaround, it may work if you simply specify the capitalized column name in the Expression field of the column's definition.

@oxystin
Copy link
Author

oxystin commented Dec 18, 2017

@rumbin Thanks for the answer. I'll try your recipe.

@stale
Copy link

stale bot commented Apr 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 11, 2019
@stale stale bot closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

2 participants