- Newest
- Most votes
- Most comments
The error message you're encountering suggests that there might be an issue with the SQL query or the database settings, rather than a specific DDL problem. However, there are a few things you can check and try to resolve this issue:
-
Verify that the Athena workgroup associated with your QuickSight data source exists and is enabled. Sometimes, workgroup configuration issues can cause SQL exceptions.
-
Ensure that QuickSight has the necessary permissions to access the S3 output location associated with the Athena workgroup. The QuickSight administrator may need to edit the Security & Permissions settings in the Manage QuickSight screen to grant these permissions.
-
Check that the Athena workgroup has an associated S3 output location. This needs to be set up correctly in the Athena console.
-
The table structure you've provided is quite complex, with nested structs and maps. QuickSight might be having trouble interpreting this structure. You could try creating a view in Athena that flattens some of the complex structures, and then use that view in QuickSight.
-
If you're using a custom SQL query in QuickSight, double-check the syntax. Ensure that you're specifying the schema name along with the table name (e.g., my_schema.my_table).
-
The table name (7908a9eb-2b22-4e58-a9e5-77c466fbff7e) is unusual and might be causing issues. Try creating a view with a simpler name and use that in QuickSight.
-
Verify that the columns you're trying to use in QuickSight exist in the Athena table. Sometimes, schema mismatches can cause SQL exceptions.
If none of these solutions work, you may need to contact AWS support for further assistance, as the issue could be related to the specific configuration of your CloudTrail Lake, Athena, and QuickSight setup.
Sources
SPICE ingestion error codes - Amazon QuickSight
Workgroup and output errors when using Athena with Amazon QuickSight - Amazon QuickSight
Table not found when using Athena with Amazon QuickSight - Amazon QuickSight
Column not found when using Athena with Amazon QuickSight - Amazon QuickSight
Relevant content
- asked 6 months ago