Amazon Athena SHOW CREATE TABLE is failing

0

When database contains - in the name, the Show Create Table for the table in that DB is failing.

For example:

For test_table.db1

SHOW CREATE TABLE db1 or SHOW CREATE TABLE test_table.db1 both return FAILED: ParseException line 1:11 missing EOF at '-' near 'test'

Denys
preguntada hace 2 años289 visualizaciones
1 Respuesta
0

You are right that you get this error when the database name specified in the DDL statement contains a hyphen ("-"). AWS Glue allows database names with hyphens. However, underscores (_) are the only special characters that Athena supports in database, table, view, and column names.

To resolve this issue, recreate the database with a name that doesn't contain any special characters other than underscore (_).

Reference - https://aws.amazon.com/premiumsupport/knowledge-center/parse-exception-missing-eof-athena/

profile pictureAWS
EXPERTO
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas