Problem with data showing null value when executing Query twice in athena

0

I fetched data from S3 from athena and ran a Query that looked at 10 rows.

The first run shows the table, the second table gets null values.

If you delete the result folder executed in athena from within the bucket, it will be executed again.

But I want to check the table without deleting the folder.

Thanks for your help.

gefragt vor 2 Jahren365 Aufrufe
1 Antwort
1
Akzeptierte Antwort

Based on what is happening, it seems as though the query results location is writing into the same location as the Athena table and that seems to be causing the issue. I suggest the following steps to set up another location for the Athena query results.

  1. Click on Settings tab in the Athena console
  2. Click the manage button
  3. Choose the bucket (Ideally we create a separate bucket for Athena). you can choose a folder result such as bucket-name/athena_results/team_name/user_name. If you end up using the same bucket as the data location, ensure the folder location and the athena results location are different.
profile pictureAWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen