fix: is_select (#25189)

(cherry picked from commit 2f68010729)
This commit is contained in:
Beto Dealmeida
2023-09-06 11:54:25 -07:00
committed by Michael S. Molina
parent d8c72b86bc
commit 2ac03c3bcc
2 changed files with 47 additions and 34 deletions

View File

@@ -1616,3 +1616,10 @@ def test_extract_table_references(mocker: MockerFixture) -> None:
Table(table="other_table", schema=None, catalog=None)
}
logger.warning.assert_not_called()
def test_is_select() -> None:
"""
Test `is_select`.
"""
assert not ParsedQuery("SELECT 1; DROP DATABASE superset").is_select()