crawled data can not be queried in athena

0
  1. Use glue to crawl data from s3 file which contains following json
{"a":"b", "c":"d"}
{"a":"b1", "c":"d2"}
  1. The crawler successfully create a table in a database with all the columns recognized
  2. Go to athena to query this table, query succeeded, but returns a 0 results.

Why does it return 0 results while it should have 2? At the same time there is no error at any step, and the schema is correctly analyzed.

AWS
질문됨 7년 전900회 조회
1개 답변
0
수락된 답변

OK, the problem is with how you define the source s3.

The s3 can not be a single file, but a dir.

refer to this doc for using Glue Crawlers: https://docs.aws.amazon.com/glue/latest/dg/crawler-s3-folder-table-partition.html

AWS
답변함 7년 전

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

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

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

관련 콘텐츠