fix: is_select (#25189)

This commit is contained in:
Beto Dealmeida
2023-09-06 11:54:25 -07:00
committed by GitHub
parent 8be8014504
commit 2f68010729
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()