fix(sql-lab): improved SQL statement parsing and validation (#42928)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-08-11 19:35:43 -07:00
committed by GitHub
co-authored by Claude Opus 4.8
parent d570335f67
commit 584466e02b
17 changed files with 787 additions and 111 deletions
@@ -44,6 +44,11 @@ def mock_database(mocker: MockerFixture) -> MagicMock:
"superset.commands.database.validate_sql.DatabaseDAO"
)
DatabaseDAO.find_by_id.return_value = database
# Access validation runs before template processing; it has its own
# coverage, so keep it a no-op here.
mocker.patch(
"superset.commands.database.validate_sql.security_manager.raise_for_access"
)
return database