You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 345a93e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(explore): show SQL and error for parsing failures in View Query modal
When SQL generation succeeds but optimization/parsing fails, View Query
modal now displays both the error message and the SQL that failed to parse.
This is Phase 2 of the fix for #35492. Phase 1 fixed validation errors
(before SQL generation). Phase 2 fixes parsing errors (after SQL generation,
during optimization).
Backend changes:
- Added SupersetParseError handling in _get_query()
- Extracts SQL from error.extra['sql'] when parsing fails
- Returns both query and error to frontend
Frontend changes:
- Updated ViewQueryModal to render both Alert and ViewQuery simultaneously
- Changed from ternary (either/or) to conditional rendering (both)
- Added Fragment wrapper to support multiple children
Tests:
- Added backend unit test for SupersetParseError handling
- Added frontend test for rendering both error and SQL
- All 8 backend tests passing
- All 2 frontend tests passing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments