Skip to content

fix: enforce query row ceiling and preserve routing errors - #123

Merged
francoischalifour merged 1 commit into
mainfrom
fc/enforce-query-row-ceiling
Oct 28, 2026
Merged

francoischalifour merged 1 commit into
mainfrom
fc/enforce-query-row-ceiling

Conversation

@francoischalifour

Copy link
Copy Markdown
Member

Hosted data apps reject requests above 10,000 rows, while shared SDK validation and SQL hosts previously allowed them. Enforce the same ceiling in operation policies and the shared SQL host handler before query execution, using one MAX_QUERY_ROWS constant.

Preserve intentional MessageRoutingError failures from input validation so their code, message, and request ID reach callers. Unexpected errors still receive the generic invalid-payload message. Document the row ceiling in the contract guide.

Tests and local verification were explicitly skipped at the user's request.

Reject SQL host requests and operation policies above 10,000 rows. Preserve intentional MessageRoutingError failures during router input validation while normalizing unexpected errors.

Document the shared row ceiling. Verification was explicitly skipped at the user's request.

@albert20260301 albert20260301 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes operation declarations and the shared SQL host enforce the same 10,000-row ceiling. Oversized SQL requests are rejected before authorization or backend execution; exactly 10,000 rows remain valid. Intentional input-validation routing errors retain their code, message, and request ID, while unexpected parser failures remain generic.

I verified those boundaries with three additional local probes alongside the existing message/operation tests (23 tests passed). Build, types, lint, package-boundary and reference checks pass; required CI is green. No blocking findings. A published SDK release is still needed for consumers to receive this behavior.

@francoischalifour
francoischalifour merged commit e740c76 into main Oct 28, 2026
6 checks passed
@francoischalifour
francoischalifour deleted the fc/enforce-query-row-ceiling branch October 28, 2026 16:23
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.

3 participants