Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dbt-client compatibility changes * Create helper macros for primary and secondary aggregation * average rename * Add comment discussing difference between primary and secondary calc macro dispatch strategy * Hide original file from dbt * Swap out dynamic macro dispatch for hardcoded list that actually works * Move `how` to PoP macro as that’s the only place it happens * Move debug macros, change helpers to use consistent signature * Pull get_metric out to its own macro * Swap in a proper table * Update dbt_project.yml, add slack metric def * Change metric calculation to support arbitrary calendar properties * Protect against not execute * Metrics namespacing * Access relations without using ref * Import utils * Count * if no expression provided * Remove redundant files and add to gitignore * Remove redundant aggregate references in secondary calcs * whitespace management and remove obsolete TODOs * Remove redundant metric_name arg (available on the main metric object) * Moving stuff around * Pull through date columns needed for secondary calcs * Give aliases to calculations, protect against pulling a whole table for a count(*) * Everythig uses refs now, but it is very bad * Rename metrics file * Splitting into smaller files * add todo * Forgot to bring through calculation alias * validate metrics queries make sense (legal grains, aggregates) * Moving stuff around, run legality tests * Protect against missing key * Use joiner for prettier error message * Goodbye debug file * Actually rename debug file * swap one todo for another * Swap out loop for fancy one-liner * Add builtin calendar * swap out fancy one-liner for a good-old-fashioned loop * Add integration tests project * Protect against missing meta configs * Remove duplicate average key * Add defaults to metric call * Write README * warnings about experimental behaviour * add secondary calcs shoutout * Broader utils support * Cleanup todos, protect against whitespace sql agg * readme tweaks * Update get_metric_sql.sql * Cross-db support * Add ci, circle for now * Update get_metric_sql.sql * Revert "Add ci, circle for now" This reverts commit a7e8940. * Set up end to end testing with GHA (#3) * first pass at setting up postgres integration tests * try number 2 * try number 3 * try number 4 * try number 5 * try number 6 * try number 7 * add snowflake integration tests * use snowflake target * add rest of 'em * try again please * fix target arg * fix syntax * use json for bigquery keyfile * fix env var * rename workflow * fix bigquery * more fix bigquery * more fix bigquery * re run * test * asdf * aha! * Remove star macro * Remove debug command * Properly remove star macro * Add comment expanding on problem * Add support for min aggregate (#4) * fix a bunch of badly named stuff * meta accessing isn't dependent on index anymore * Update readme to contain info on secondary calcs * tweak TOC builder file * Update create-table-of-contents.yml * Update README.md * Auto update table of contents * Update README.md * Auto update table of contents Co-authored-by: Jeremy Cohen <[email protected]> Co-authored-by: Kyle Wigley <[email protected]> Co-authored-by: joellabes <[email protected]>
- Loading branch information