Skip to content

Commit

Permalink
Delete records with l_suppkey = 9999 before running (#13389)
Browse files Browse the repository at this point in the history
  • Loading branch information
aavdonkin authored Jan 15, 2025
1 parent 0913a5c commit 4959d3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ydb/tests/sql/large/test_insert_delete_duplicate_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ def read_data():
while not all(f.done() for f in insert_futures):
check_data()

# Delete all records with l_suppkey = 9999
delete_query = f"""
DELETE FROM `{lineitem_table}` WHERE l_suppkey = 9999;
"""
self.query(delete_query)

# Use ThreadPoolExecutor to manage threads
with concurrent.futures.ThreadPoolExecutor(max_workers=num_threads+1) as executor:
# Start insert and delete operations
Expand Down

0 comments on commit 4959d3e

Please sign in to comment.