Skip to content

fix: don't reformat generated queries - #30350

Merged
betodealmeida merged 2 commits into
masterfrom
remove-query-format
Oct 4, 2024
Merged

betodealmeida merged 2 commits into
masterfrom
remove-query-format

Conversation

@betodealmeida

Copy link
Copy Markdown
Member

SUMMARY

When running a query we pass it through sqlglot to prettify the SQL, but sqlglot is doing some unwanted changes when the dialect is set to generic.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot Bot added the change:backend Requires changing the backend label Sep 20, 2024
@sadpandajoe sadpandajoe added the v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch label Sep 20, 2024
@betodealmeida
betodealmeida force-pushed the remove-query-format branch 4 times, most recently from a9c99eb to 119817f Compare September 20, 2024 19:53

@mistercrunch mistercrunch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sadpandajoe sadpandajoe linked an issue Sep 24, 2024 that may be closed by this pull request
3 tasks done
@betodealmeida
betodealmeida force-pushed the remove-query-format branch 6 times, most recently from 99e7506 to 4abf432 Compare October 4, 2024 14:22
@betodealmeida
betodealmeida merged commit 0b34197 into master Oct 4, 2024
sadpandajoe pushed a commit that referenced this pull request Oct 4, 2024
@github-actions github-actions Bot added the 🍒 4.1.0 Cherry-picked to 4.1.0 label Nov 14, 2024
@github-actions github-actions Bot added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Nov 14, 2024
@mistercrunch mistercrunch added the 🍒 4.1.1 Cherry-picked to 4.1.1 label Nov 27, 2024
nyohasstium pushed a commit to Webgains/superset that referenced this pull request Jan 2, 2025
@github-actions github-actions Bot added the 🍒 4.1.2 Cherry-picked to 4.1.2 label Apr 1, 2025
@mistercrunch mistercrunch added 🍒 4.1.3 Cherry-picked to 4.1.3 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
@rusackas
rusackas deleted the remove-query-format branch August 12, 2025 22:59
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels change:backend Requires changing the backend size/M v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch 🍒 4.1.0 Cherry-picked to 4.1.0 🍒 4.1.1 Cherry-picked to 4.1.1 🍒 4.1.2 Cherry-picked to 4.1.2 🍒 4.1.3 Cherry-picked to 4.1.3 🍒 4.1.4 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Charts fail to load for Trino due to query being updated

4 participants