Verify Ingested Data

Verify Ingested Data

After the Glue Crawler has finished running, we need to verify that the data has been properly cataloged and is queryable. In this step, we will check the tables created in the Glue Data Catalog and preview the data.

After the Crawler completes, you should see at least two tables in the summitdb database: one for the raw streaming data and one for the reference_data (tracks list).

  1. Access the AWS Management Console

    • Search for S3
    • Select S3

    Verify Ingested Data

  2. In the S3 interface

    • Select Buckets
    • Select the asg-datalake-demo-bucket bucket

    Verify Ingested Data

  3. We will create a folder for Athena to store query results

    • Select Create folder

    Verify Ingested Data

  4. In the Create folder interface

    • Folder name, enter Athena
    • Select Create folder

    Verify Ingested Data

  5. Folder Athena created successfully

    Verify Ingested Data

  6. Access the AWS Management Console

    • Search for Athena
    • Select Athena

    Verify Ingested Data

  7. In the Amazon Athena interface

    • Select Query editor in the left menu
    • Select Edit settings to set the query result location

    Verify Ingested Data

  8. In the Query settings tab

    • Select Manage to configure the query result location

    Verify Ingested Data

  9. In the Manage query result location and encryption dialog

    • Select Browse S3 to choose the S3 path

    Verify Ingested Data

  10. In the Choose S3 data set dialog

    • Search and select your asg-datalake-demo-bucket bucket

    Verify Ingested Data

  11. Select the Athena folder, then click Choose

    Verify Ingested Data

  12. Verify the S3 path is set correctly, then select Save

    Verify Ingested Data

  13. Settings successfully updated

    Verify Ingested Data

  14. In the Editor tab, set up the query environment

    • Data source, select AwsDataCatalog
    • Database, select summitdb
    • You will see 2 tables: raw2026 and reference_data
    • Click the three-dot menu on raw2026 table

    Verify Ingested Data

  15. Select Preview Table to preview the data

    Verify Ingested Data

  16. Query executed successfully

    • The query SELECT * FROM "summitdb"."raw2026" limit 10; runs automatically
    • Results show 10 rows of data

    Verify Ingested Data

  17. Explore the query results data

    • You can see columns: uuid, device_ts, device_id, device_temp, track_id, activity_type

    Verify Ingested Data

  18. Continue verifying data. In the query editor, copy and paste the following query

    SELECT activity_type,
           count(activity_type)
    FROM raw2026
    GROUP BY activity_type
    ORDER BY activity_type
    
    • Select Run
    • Query completed successfully

    Verify Ingested Data

  19. Check the query results

    • The results show 6 activity types: Running, Sitting, Traveling, Walking, Working, and empty

    Verify Ingested Data