Skip to content

Commit 9e0b117

Browse files
authored
fix: Set cte_follows_insert to True (#1095)
1 parent f5fb1a2 commit 9e0b117

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

sqlalchemy_bigquery/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ class BigQueryDialect(DefaultDialect):
990990
type_compiler = BigQueryTypeCompiler
991991
ddl_compiler = BigQueryDDLCompiler
992992
execution_ctx_cls = BigQueryExecutionContext
993+
cte_follows_insert = True
993994
supports_alter = False
994995
supports_comments = True
995996
inline_comments = True

tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,6 @@ def test_round_trip_executemany(self, connection):
537537

538538

539539
class CTETest(_CTETest):
540-
@pytest.mark.skip("Can't use CTEs with insert")
541-
def test_insert_from_select_round_trip(self):
542-
pass
543-
544540
@pytest.mark.skip("Recusive CTEs aren't supported.")
545541
def test_select_recursive_round_trip(self):
546542
pass

0 commit comments

Comments
 (0)