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
已提问 2 年前266 查看次数
1 回答
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
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则