Skip to content

Commit e2cebde

Browse files
authored
docs(protocol): Add documentation about header size limits (#26495)
## Description Header limits are frequently tripped by using prepared statements. Add doc that makes this clear to users and suggest a potential workaround. ## Motivation and Context Clear documentation on how to avoid an error. ## Impact More documentation. ## Test Plan N/A ## Contributor checklist - [ ] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [ ] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [ ] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [ ] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [ ] Adequate tests were added if applicable. - [ ] CI passed. - [ ] If adding new dependencies, verified they have an [OpenSSF Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or higher (or obtained explicit TSC approval for lower scores). ## Release Notes ``` == NO RELEASE NOTE == ```
1 parent 8c65c9a commit e2cebde

File tree

1 file changed

+4
-1
lines changed
  • presto-docs/src/main/sphinx/troubleshoot

1 file changed

+4
-1
lines changed

presto-docs/src/main/sphinx/troubleshoot/query.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ Edit ``config.properties`` for the Presto coordinator, and set the value of the
4444
4545
http-server.max-request-header-size=5MB
4646
47-
See :ref:`admin/properties:\`\`http-server.max-request-header-size\`\``.
47+
See :ref:`admin/properties:\`\`http-server.max-request-header-size\`\``.
48+
49+
Alternatively, avoid using prepared statements for large queries. Prepared statements
50+
place the SQL template in request headers, which can exceed the header size limit.

0 commit comments

Comments
 (0)