Skip to content

Commit

Permalink
fix: Set cte_follows_insert to True (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
aholyoke authored Jul 18, 2024
1 parent f5fb1a2 commit 9e0b117
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions sqlalchemy_bigquery/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ class BigQueryDialect(DefaultDialect):
type_compiler = BigQueryTypeCompiler
ddl_compiler = BigQueryDDLCompiler
execution_ctx_cls = BigQueryExecutionContext
cte_follows_insert = True
supports_alter = False
supports_comments = True
inline_comments = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,6 @@ def test_round_trip_executemany(self, connection):


class CTETest(_CTETest):
@pytest.mark.skip("Can't use CTEs with insert")
def test_insert_from_select_round_trip(self):
pass

@pytest.mark.skip("Recusive CTEs aren't supported.")
def test_select_recursive_round_trip(self):
pass
Expand Down

0 comments on commit 9e0b117

Please sign in to comment.