I am trying to wrie a Custom SQL Query in QuickSight for three different tables from a schema in Athena and got the above source error code. Details of my error:
sourceErrorCode:
100071
sourceErrorMessage:
[Simba]AthenaJDBC An error has been thrown from the AWS Athena client. line 3:14: mismatched input ‘-’. Expecting: ‘)’, ‘,’, ‘.’, ‘AS’, ‘CROSS’, ‘EXCEPT’, ‘FETCH’, ‘FOR’, ‘FULL’, ‘GROUP’, ‘HAVING’, ‘INNER’, ‘INTERSECT’, ‘JOIN’, ‘LEFT’, ‘LIMIT’, ‘MATCH_RECOGNIZE’, ‘NATURAL’, ‘OFFSET’, ‘ORDER’, ‘RIGHT’, ‘TABLESAMPLE’, ‘UNION’, ‘WHERE’, ‘WINDOW’, , [Execution ID not available]
sourceErrorState:
HY000
sourceException:
java.sql.SQLException
sourceType:
ATHENA
Really appreciate it if there could be insights into what went wrong with my query, it’s just a very simple query to test running custom SQL query in QuickSight. Many thanks!