Hi all,
I’m trying to build a dataset in Amazon QuickSight using custom SQL, but it isn’t working. My data source is Athena, and a normal table/visual import works fine; the problem only appears when I switch to custom SQL.
What happens: when I enter my query and click Save & publish, I get error message:
Your database generated a SQL exception. This can be caused by query timeouts, resource constraints, unexpected DDL alterations before or during a query, and other database errors. Check your database settings and your query, and try again.
What I’ve already checked: the same query runs successfully directly in Athena , the data source connection is valid, and I have SPICE selected.
Questions:
-
Is there a known limitation or syntax restriction with custom SQL on this data source in QuickSight?
-
Could this be a permissions issue (e.g. the QuickSight service role missing access to the underlying tables/S3)?
-
Anything I should check in the dataset/SPICE settings?
Any pointers appreciated. Thanks!