creating Athena table error

AWS/Amazon Athena

  • outline

Error occurs when creating table for Athena.

  • error message
line 1:8: mismatched input 'EXTERNAL'. Expecting: 'MATERIALIZED', 'OR', 'ROLE', 'SCHEMA', 'TABLE', 'VIEW'
  • resolution

You can use NOT "-" as part of table name. After change "-" to "_" and create again.