Skip to content

Commit 0c2ab2a

Browse files
docs: note Result Reuse semantic-equivalence behavior change (2025-11)
Athena changed Result Reuse in November 2025 to match queries by semantic equivalence instead of exact string. Add a note in the Result reuse configuration section so users understand the server-side behavior change. Refs #711
1 parent 3304e03 commit 0c2ab2a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/usage.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ pyathena.error.DatabaseError: An error occurred (InvalidRequestException) when c
156156

157157
If for some reason you cannot use the reuse feature of Athena engine version 3, please use the {ref}`Cache configuration <cache-configuration>` implemented by PyAthena.
158158

159+
:::{note}
160+
**Semantic-equivalence matching (November 2025)**
161+
162+
As of November 2025, Athena's result reuse no longer requires byte-for-byte identical query text. Result reuse is now triggered when a query is **semantically equivalent** to a previously executed query — cosmetic differences such as whitespace, comments, or keyword casing no longer prevent a cache hit.
163+
164+
This behavior change happens server-side; PyAthena does not need to be updated, and existing code using `result_reuse_enable` continues to work unchanged. Users who relied on exact-string matching for cache invalidation should be aware that more queries may now reuse prior results than before.
165+
166+
See the [Athena documentation](https://docs.aws.amazon.com/athena/latest/ug/reusing-query-results.html) for the latest rules on what counts as semantically equivalent.
167+
:::
168+
159169
(cache-configuration)=
160170

161171
### Cache configuration

0 commit comments

Comments
 (0)