Skip to content

Commit 76534aa

Browse files
add if exists to drop
1 parent f40cd28 commit 76534aa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ The supported method of passing ClickHouse server settings is to prefix such arg
2323

2424
## UNRELEASED
2525
### Bug Fixes
26+
- Fix issue with DROP table in client temp table test.
27+
2628
### Improvements
2729

2830
## 0.10.0, 2025-11-14

tests/integration_tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_temporary_tables(test_client: Client):
234234
test_client.insert_df('temp_test_table', df, settings=session_settings)
235235
df = test_client.query_df('SELECT * FROM temp_test_table', settings=session_settings)
236236
assert len(df['field1']) == 4
237-
test_client.command('DROP TABLE temp_test_table', settings=session_settings)
237+
test_client.command('DROP TABLE IF EXISTS temp_test_table', settings=session_settings)
238238

239239

240240
def test_str_as_bytes(test_client: Client, table_context: Callable):

0 commit comments

Comments
 (0)