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

Wrong SQL generated when filter is used #11639

Closed
stone-bits opened this issue Nov 10, 2020 · 2 comments
Closed

Wrong SQL generated when filter is used #11639

stone-bits opened this issue Nov 10, 2020 · 2 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead

Comments

@stone-bits
Copy link

I have a data table with a field that contains data with double quoted text at the end:

some text "another text"

The last double quote is dropped in generated SQL when I use this field in a filter.

Actual results

WHERE org_name IN ('some text "another text')

Expected results

WHERE org_name IN ('some text "another text"')

How to reproduce the bug

  1. Create dataset with data as above
  2. Create chart
  3. Create filter
  4. Create dashboard
  5. Use filter in dashboard
  6. See chart is empty.
  7. Explore chart. View chart SQL code in SQL Lab

Environment

  • DB - PostgreSQL 10
  • superset version: 0.37.2
  • python version: 3.6
@aygiz
Copy link

aygiz commented Nov 10, 2021

Hi, any update on this?
version 1.3.1 still has this issue.

@Qweyer
Copy link

Qweyer commented Dec 10, 2021

I have the same issue, using 1.3.0 version with PostgreSQL connector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

No branches or pull requests

4 participants