Skip to content

fix(logger): honor internal BTQL dataset limits - #658

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
abhi-fix-cap-internal-btql-dataset-results
Aug 5, 2026
Merged

fix(logger): honor internal BTQL dataset limits#658
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
abhi-fix-cap-internal-btql-dataset-results

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

resolves https://linear.app/braintrustdata/issue/SDK-200/python-dataset-returns-more-records-than-specified-in-internal-btql

BTQL applies limit per page, so ObjectFetcher kept following cursors and returned more records than users requested. This caused evaluations and other consumers relying on a bounded dataset size to process unexpected records.

Stop after the cumulative limit, truncate excess results, and skip API work for a zero limit.

BTQL applies limit per page, so ObjectFetcher kept following cursors and
returned more records than users requested. This caused evaluations and other
consumers relying on a bounded dataset size to process unexpected records.

Stop after the cumulative limit, truncate excess results, and skip API work for
a zero limit. Add VCR-backed pagination coverage and a focused zero-limit test.
Provide a dummy API key so the regression test reaches the recorded login
request when CI runs without BRAINTRUST_API_KEY. Local runs previously passed
only because a developer credential was present in the environment.
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 2f34a02 into main Aug 5, 2026
82 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-cap-internal-btql-dataset-results branch August 5, 2026 16:12
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