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 adb1319 commit e178b90Copy full SHA for e178b90
awswrangler/athena/_read.py
@@ -365,6 +365,10 @@ def _resolve_query_without_cache_ctas(
365
)
366
except botocore.exceptions.ClientError as ex:
367
error: Dict[str, Any] = ex.response["Error"]
368
+ if error["Code"] == "InvalidRequestException" and "Exception parsing query" in error["Message"]:
369
+ raise exceptions.InvalidCtasApproachQuery(
370
+ "Is not possible to wrap this query into a CTAS statement. Please use ctas_approach=False."
371
+ )
372
if error["Code"] == "InvalidRequestException" and "extraneous input" in error["Message"]:
373
raise exceptions.InvalidCtasApproachQuery(
374
"Is not possible to wrap this query into a CTAS statement. Please use ctas_approach=False."
0 commit comments