Athena - COLUMN_NOT_FOUND: line 1:8: Column 'description' cannot be resolved

2

When querying Iceberg tables using Athena I am encountering the below errors.

Example query: SELECT * FROM "db"."table" limit 10; Error: SYNTAX_ERROR: line 1:8: SELECT * not allowed from relation that has no columns

Example query: SELECT id FROM "db"."table" limit 10; Error: COLUMN_NOT_FOUND: line 1:8: Column 'id' cannot be resolved

The table schema can be seen when running DESCRIBE. The same behaviour is encountered for all 30 tables in the one database and was was working fine on 2022-10-21.

I am not using Lake Formation, only Glue Data Catalog. Does anyone have any ideas?

  • I'm having the same problem.

  • I am having the same issue. I cannot access to all the Iceberg tables via Athena but I can access through Spark/Presto.

질문됨 2년 전809회 조회
2개 답변
0

I never found a root cause to the issue but it now seems to be working again (in Version 2 of the Athena engine only).

Version 3 of the Athena engine still encounters the same issues.

답변함 2년 전
0

I solved this problem by granting the right permission to my account or IAM role on Data Lake permission at Lake Formation. This has nothing to do with Athena's Version. Just be careful which one you use when you log into AWS. your account or IAM role, you need to assign the permission to the right one. This one is related to COLUMN_NOT_FOUND: line 1:8: and SYNTAX_ERROR: line 1:8: SELECT * not allowed from relation that has no columns.

답변함 일 년 전

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

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

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