Skip to content

Commit 5583459

Browse files
committed
chore: fix tests to include dataframe
1 parent d41c3e0 commit 5583459

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sqlmesh/core/engine_adapter/clickhouse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ def query_factory() -> Query:
113113
**kwargs,
114114
)
115115

116-
self.cursor.client.insert_df(temp_table.sql(dialect=self.dialect), df=df)
116+
self.cursor.client.insert_df(
117+
temp_table.sql(dialect=self.dialect), df=df, column_names=source_columns
118+
)
117119

118120
return exp.select(*self._casted_columns(target_columns_to_types, source_columns)).from_(
119121
temp_table

tests/core/engine_adapter/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def ctx_df(
148148
yield from create_test_context(*request.param)
149149

150150

151-
@pytest.fixture(params=list(generate_pytest_params(ENGINES, query=True, df=False)))
151+
@pytest.fixture(params=list(generate_pytest_params(ENGINES, query=True, df=True)))
152152
def ctx_query_and_df(
153153
request: FixtureRequest,
154154
create_test_context: t.Callable[[IntegrationTestEngine, str], t.Iterable[TestContext]],

0 commit comments

Comments
 (0)