- Newest
- Most votes
- Most comments
Based on your description, there are a few key issues to address with your SAP OData connector pagination behavior:
Regarding the page size discrepancy: The AWS Glue SAP OData connector has a default page size of 50,000 records. While you've configured PAGE_SIZE=100000, there's a maximum allowed page size of 500,000. However, it appears the SAP system itself might be enforcing its own limit of approximately 50,156 records per page, which would explain why you're consistently seeing that number in the logs rather than your configured 100,000.
As for the continuous pagination issue: The connector is designed to continue paginating until it has retrieved all records that match your query criteria. The behavior you're seeing suggests that either:
- Your filter criteria might not be limiting the dataset as expected
- There could be an issue with how the SAP OData service is handling the pagination tokens
- The total record count reported by the SAP system might be incorrect
For controlling pagination: Unfortunately, there isn't a direct way to disable pagination in the SAP OData connector as it's a fundamental mechanism for handling large datasets. However, you could try these approaches:
- Verify your filter predicates are correctly applied and working as expected
- Consider using the DELTA_TOKEN option if you're implementing incremental data loads
- For CDC-enabled entities, use the ENABLE_CDC option set to "True" along with DELTA_TOKEN for more efficient data extraction
- Examine if your SAP OData service supports the ODP framework, which provides better handling of data extraction through Operational Delta Queues
If you're consistently retrieving more records than expected, I'd recommend checking the filter predicate syntax and confirming with your SAP team that the OData service is correctly implementing the filtering capabilities.
Sources
SAP OData connection options - AWS Glue
Scaling RISE with SAP data and AWS Glue | AWS Big Data Blog
answered a year ago
Relevant content
asked a year ago
