From 09edca30413bca7fe9fc047a146cb90a1f11f212 Mon Sep 17 00:00:00 2001 From: BryanFauble <17128019+BryanFauble@users.noreply.github.com> Date: Tue, 18 Feb 2025 15:18:17 -0700 Subject: [PATCH] Reset chunk size --- synapseclient/models/mixins/table_operator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/synapseclient/models/mixins/table_operator.py b/synapseclient/models/mixins/table_operator.py index 1d1610f02..f196cd3af 100644 --- a/synapseclient/models/mixins/table_operator.py +++ b/synapseclient/models/mixins/table_operator.py @@ -1037,8 +1037,6 @@ async def main(): if client.logger.isEnabledFor(logging.DEBUG): client.logger.debug(f"Running query: {query}") - else: - client.logger.info("Running query") # TODO: Implementation should not download CSV to disk, instead the ideal # solution will load the result into BytesIO and then pass that to @@ -2100,6 +2098,7 @@ async def main(): if current_chunk_size + row_size > chunk_size_limit: chunked_rows_to_update.append(chunk) chunk = [] + current_chunk_size = 0 chunk.append(row) current_chunk_size += row_size