line 1:1: mismatched input 'MSCK'. Expecting: 'ALTER', 'ANALYZE', 'CALL', 'COMMENT', 'COMMIT', 'CREATE', 'DEALLOCATE', 'DELETE', 'DENY', 'DESC', 'DESCRIBE', 'DROP', 'EXECUTE', 'EXPLAIN', 'GRANT', 'INSERT', 'MERGE', 'PREPARE', 'REFRESH', 'RESET', 'REVOKE', 'ROLLBACK', 'SET', 'SHOW', 'START', 'TRUNCATE', 'UNLOAD', 'UPDATE', 'USE', <query>
Conclusion: following the exact instructions does not yield expected results. If you do have a way around this, please let me know, but my expectation is that following the literal instructions should work here.
When I run the queries:
if I run both the CREATE EXTERNAL TABLE and the MSCK REPAIR TABLE, I get
line 1:8: mismatched input 'EXTERNAL'. Expecting: 'MATERIALIZED', 'OR', 'ROLE', 'SCHEMA', 'TABLE', 'VIEW'The instructions say only one query at a time in Athena. So if I run just one part of that query, only CREATE EXTERNAL TABLE, then it works. But then I get no partitions loaded. Running MSCK REPAIR TABLE
places; yields:Load partitionssame result as in step 2Conclusion: following the exact instructions does not yield expected results. If you do have a way around this, please let me know, but my expectation is that following the literal instructions should work here.