Skip to content

Commit 768716c

Browse files
authored
revert#2
1 parent 2607f7c commit 768716c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/core/engine_adapter/test_fabric.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ def test_replace_query(adapter: FabricEngineAdapter, mocker: MockerFixture):
8181
)
8282
adapter.replace_query(
8383
"test_table", parse_one("SELECT a FROM tbl"), {"a": exp.DataType.build("int")}
84+
)
8485

86+
# This behavior is inherited from MSSQLEngineAdapter and should be TRUNCATE + INSERT
87+
assert to_sql_calls(adapter) == [
88+
"TRUNCATE TABLE [test_table];",
89+
"INSERT INTO [test_table] ([a]) SELECT [a] FROM [tbl];",
90+
]
8591

8692
def test_alter_table_column_type_workaround(adapter: FabricEngineAdapter, mocker: MockerFixture):
8793
"""

0 commit comments

Comments
 (0)