getmoto / moto

A library that allows you to easily mock out tests based on AWS infrastructure.
http://docs.getmoto.org/en/latest/
Apache License 2.0
7.66k stars 2.05k forks source link

DynamoDB Scan does not support segments #8171

Closed stephen-christie-ss closed 6 days ago

stephen-christie-ss commented 1 month ago

I am making a Lambda which splits a scan into multiple segments for "threaded" processing, and hoped to test the logic with Moto before trying it for real. It seems that Moto doesn't understand the concept, however.

AWS documentation: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.ParallelScan

Moto implementation: https://github.com/getmoto/moto/blob/12cd1868b5e725b8201714f30d5ddfd0324fd141/moto/dynamodb/responses.py#L833

bblommers commented 1 month ago

Hi @stephen-christie-ss, welcome to Moto! Marking it as an enhancement to implement this feature.