# How can the Athena table automatically detect new S3 folders/partitions for Quick update visuals

**URL:** <https://community.amazonquick.com/t/how-can-the-athena-table-automatically-detect-new-s3-folders-partitions-for-quick-sight-update-visuals/9096>\
**Category:** Q&A\
**Tags:** data-source, quick-sight\
**Created:** [January 16, 2023, 12:10pm UTC](https://community.amazonquick.com/t/how-can-the-athena-table-automatically-detect-new-s3-folders-partitions-for-quick-sight-update-visuals/9096 "2023-01-16T12:10:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeorgeS](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@GeorgeS](https://community.amazonquick.com/u/GeorgeS)\
**Post date:** [January 16, 2023, 12:10pm UTC](https://community.amazonquick.com/t/how-can-the-athena-table-automatically-detect-new-s3-folders-partitions-for-quick-sight-update-visuals/9096/1 "2023-01-16T12:10:40Z")

</div>

How can I create Athena tables or views that dynamically/automatically grabs new S3 folders/partitions, like dates where data is partitioned by day and hour. As new data hits S3, to have it in a way that Quick Sight can refresh and update visuals with new data.

What options are available to achieve this?

---

<div class="post-metadata">

**Author:** ![sagmukhe](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sagmukhe/32/22033_2.png) [@sagmukhe](https://community.amazonquick.com/u/sagmukhe)\
**Post date:** [January 17, 2023, 9:00am UTC](https://community.amazonquick.com/t/how-can-the-athena-table-automatically-detect-new-s3-folders-partitions-for-quick-sight-update-visuals/9096/2 "2023-01-17T09:00:54Z")

</div>

@GeorgeS - I believe this query has nothing to do with Quick Sight, rather a generic Athena related question. In that case, I believe your data pipeline should have a piece of code to run glue crawler to add/update the Athena schema to ensure that new partitions are automatically reflected in Athena. You can perhaps go through the below link to get a better understanding.

[Add Newly Created Partitions Programmatically into AWS Athena schema](https://medium.com/swlh/add-newly-created-partitions-programmatically-into-aws-athena-schema-d773722a228e)
