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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠