Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем тогда, вообще, используется таблица lineitem? Может, правильнее тест гонять на другой таблице?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

она большая и заполненная. на пустой не интересно

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
Loading