AWS re:Postを使用することにより、以下に同意したことになります AWS re:Post 利用規約

Athena error COLUMN_NOT_FOUND on certain columns

0

Hi, I have a question about how athena columns listing works, since in my schema and my table I have for example a column called 'anonymousId' (and I can see it directly on the athena panel at the left side where you can see all the columns and its types) but when I try to query it I got the error COLUMN_NOT_FOUND: Column 'anonymousid' cannot be resolved or requester is not authorized to access requested resources But I can query other columns that are also on the same schema. Why athena can query some columns but others no?

質問済み 1年前572ビュー
1回答
1

The error you are encountering, "COLUMN_NOT_FOUND: Column 'anonymousid' cannot be resolved or requester is not authorized to access requested resources" suggests that there might be an issue with 1/ how the column name is being referenced in your query or 2/ with the permissions granted to your user for accessing that column in Amazon Athena.

Here are a some ways to troubleshoot:

  1. Check Column Name Casing: Athena is case-sensitive when it comes to column names. You mentioned that the column is named anonymousId but the error message shows anonymousid (without the capital 'I'). Make sure you are using the exact same casing when referencing the column in your query.
  2. Permissions: Verify that your user has the necessary permissions to access the anonymousId column in Athena. Permissions can be controlled using AWS Identity and Access Management (IAM) roles and policies. Ensure that your IAM role or user has the appropriate permissions to read the data in that column.
  3. Data Type Compatibility: Ensure that the data type of the 'anonymousId' column in your query matches the actual data type of the column in your table. Data type mismatches can also result in errors.
AWS
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ