apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.8k stars 13.87k forks source link

Charts fail to load for Trino due to query being updated #30378

Closed sadpandajoe closed 1 month ago

sadpandajoe commented 1 month ago

Bug description

Sqlglot changes the way that some Trino queries are formatted.

How to reproduce the bug

  1. go to sqllab
  2. type in a NOT IN query
  3. Save it as a dataset
  4. view the dataset query

Notice that it goes from NOT IN to WHERE NOT ... IN which won't work with Trino

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist