Skip to content

Paginate S3 listings in the Parquet export sample - #436

Open
pcbeingused333 wants to merge 1 commit into
temporalio:mainfrom
pcbeingused333:fix/s3-export-pagination
Open

pcbeingused333 wants to merge 1 commit into
temporalio:mainfrom
pcbeingused333:fix/s3-export-pagination

Conversation

@pcbeingused333

Copy link
Copy Markdown

The Parquet export sample fetches a single page of S3 object keys. When the listing is truncated, the workflow never receives the keys on later pages, so it omits those exports.

Use boto3's list_objects_v2 paginator to collect keys for the same bucket and prefix across all pages. An empty listing still raises FileNotFoundError.

A Botocore Stubber regression test serves 1,000 keys on the first page and one on the second. It fails on the original code because the last key is missing, and passes with pagination.

uv run --group cloud-export-to-parquet python -m pytest -q tests/cloud_export_to_parquet/test_data_trans_activities.py

AI assistance was used to prepare the patch and regression test.

@pcbeingused333
pcbeingused333 requested a review from a team as a code owner November 25, 2026 09:14
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants