-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ratio stats Glue job to dbt python model (#422)
* Ignore dev venv * Add initial python model * Bump dbt-athena version * Lint ratio stats * Change project name to fix compile issue * Add Spark workgroup * Finalize ratio_stats spark job * Convert vw_ratio_stats into table * Move package zip location * Remove deprecated glue job * Convert spark to pandas df * Drop detect_chasing() * Fix linting issues * Rename project (prefix with org name) * Rename vw_ratio_stats to ratio_stats_input * Add dbt tag to build daily * Update dbt/models/reporting/docs.md Co-authored-by: Jean Cochrane <jeancochrane@users.noreply.github.com> * Re-add detect_chasing as stub * Move ratio_stats to model (instead of source) * Add ratio_stats schema prefix * Alphabetize dbt reporting models * Add explicit Spark output data types * Update reporting table tags * Coerce types to int * Update Athena workgroup name * Replicate filtering from prior vw_ratio_stats pull * Update aws-athena/ctas/reporting-ratio_stats_input.sql Co-authored-by: William Ridgeway <10358980+wrridgeway@users.noreply.github.com> --------- Co-authored-by: Jean Cochrane <jeancochrane@users.noreply.github.com> Co-authored-by: William Ridgeway <10358980+wrridgeway@users.noreply.github.com>
- Loading branch information
1 parent
af87014
commit b13870e
Showing
11 changed files
with
154 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ logs/ | |
# Ignore most CSVs, except those that are used as dbt seeds | ||
*.csv | ||
!dbt/seeds/**/*.csv | ||
venv/ |
9 changes: 7 additions & 2 deletions
9
...athena/views/reporting-vw_ratio_stats.sql → ...hena/ctas/reporting-ratio_stats_input.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../aws-athena/ctas/reporting-ratio_stats_input.sql |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.