File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
sqlmesh/core/engine_adapter
tests/core/engine_adapter Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ def insert_overwrite_by_partition(
608608 if columns_to_types is None or columns_to_types [
609609 partition_column .name
610610 ] == exp .DataType .build ("unknown" ):
611- columns_to_types = self .columns (temp_table_name )
611+ columns_to_types = self .columns (table_name )
612612
613613 partition_type_sql = columns_to_types [partition_column .name ].sql (dialect = self .dialect )
614614
Original file line number Diff line number Diff line change @@ -116,9 +116,7 @@ def test_insert_overwrite_by_partition_query_unknown_column_types(
116116 },
117117 )
118118
119- columns_mock .assert_called_once_with (
120- exp .to_table (f"test_schema.__temp_test_table_{ temp_table_id } " )
121- )
119+ columns_mock .assert_called_once_with (table_name )
122120
123121 sql_calls = _to_sql_calls (execute_mock )
124122 assert sql_calls == [
You can’t perform that action at this time.
0 commit comments