I want to increase the maximum string length. But when I run an Amazon Athena query with a long string, I get an error similar to the following: "'queryString' failed to satisfy constraint: Member must have length less than or equal to 262144 (Service: AmazonAthena; Status Code: 400; Error Code: InvalidRequestException;".
Resolution
The maximum query string length in Athena is 262,144 bytes. The maximum string length isn't an adjustable quota, so AWS Support can't increase the maximum string length for you. To get the results that you want from a long query string, split long queries into multiple shorter queries.
To split a long query into multiple shorter queries, use one or more of the following methods:
You can also shorten table, database, and column names to decrease string length.
Related information
Service quotas