Skip to content

Latest commit

 

History

History
75 lines (45 loc) · 1.56 KB

final-results.md

File metadata and controls

75 lines (45 loc) · 1.56 KB

Final Results

Here, with successsful Cloud Run and Composer deployments, you will be able to see the loaded tables in BigQuery. I display mine, here, in order of load:

BigQuery Tables

posts

  • Schema:

posts-schema

  • Data:

posts-preview

comments

  • Schema:

comments-schema

  • Data:

comments-preview

insights

  • Schema:

insights-schema

  • Data:

insights-preview

Data Analysis

The tables are joinable on

posts.post_id = comments.postid = insights.post_id

For example, we can conduct analysis on recent comments linked to their parent posts:

SELECT *
FROM `winged-yeti-440908-r9.instagram_analytics.posts` p
LEFT JOIN `winged-yeti-440908-r9.instagram_analytics.comments` c
    ON p.post_id = c.postid
ORDER BY p.post_timestamp DESC;

Result:

joined-post-comments

Or, we may want to conduct analysis on post insights:

SELECT *
FROM `winged-yeti-440908-r9.instagram_analytics.posts` p
LEFT JOIN `winged-yeti-440908-r9.instagram_analytics.insights` i
    ON p.post_id = i.post_id
ORDER BY p.post_timestamp DESC;

Result:

joined-post-insights


Previous Step