We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b109c1 commit c5d5343Copy full SHA for c5d5343
awswrangler/athena/_cache.py
@@ -116,7 +116,9 @@ def _prepare_query_string_for_comparison(query_string: str) -> str:
116
"""To use cached data, we need to compare queries. Returns a query string in canonical form."""
117
# for now this is a simple complete strip, but it could grow into much more sophisticated
118
# query comparison data structures
119
- query_string = "".join(query_string.split()).strip("()").lower()
+ query_string = "".join(query_string.split()).strip().lower()
120
+ while query_string.startswith("(") and query_string.endswith(")"):
121
+ query_string = query_string[1:-1]
122
query_string = query_string[:-1] if query_string.endswith(";") else query_string
123
return query_string
124
0 commit comments