Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt utils 0.8.3 #534

Merged
merged 28 commits into from
Apr 7, 2022
Merged

dbt utils 0.8.3 #534

merged 28 commits into from
Apr 7, 2022

Commits on Dec 14, 2021

  1. Fix/timestamp withought timezone (#458)

    * timestamp and changelog updates
    
    * changelog fix
    
    * Add context for why change to no timezone
    
    Co-authored-by: Joel Labes <[email protected]>
    fivetran-joemarkiewicz and joellabes committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    80e72c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. also ignore dbt_packages (#463)

    * also ignore dbt_packages
    
    * Update CHANGELOG.md
    
    * Update CHANGELOG.md
    
    Co-authored-by: Joel Labes <[email protected]>
    dataders and joellabes committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    e195076 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58b8726 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Have union_relations raise exception when include parameter results i…

    …n no columns (#473)
    
    * Raise exception if no columns in column_superset
    
    * Add relation names to compiler error message
    
    * Add `union_relations` fix to changelog
    grahamwetzler committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    900365a View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2022

  1. Added case for handling postgres foreign tables... (#476)

    * Add link for fewer_rows_than schema test in docs (#465)
    
    * Added case for handling postgres foreign tables (tables which are external to current database and are imported into current database from remote data stores by using Foreign Data Wrappers functionallity).
    
    * Reworked getting of postges table_type.
    
    * Added needed changes to CHANGELOG.
    
    Co-authored-by: José Coto <[email protected]>
    Co-authored-by: Taras Stetsiak <[email protected]>
    3 people committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    ae65d05 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Enhance usability of star macro by only generating column aliases whe…

    …n prefix and/or suffix is specified (#468)
    
    * The star macro should only produce column aliases when there is either a prefix or suffix specified.
    
    * Enhanced the readme for the star macro.
    
    * Add new integration test
    
    Co-authored-by: Nick Perrott <[email protected]>
    Co-authored-by: Josh Elston-Green
    Co-authored-by: Joel Labes <[email protected]>
    3 people committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    c863448 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2022

  1. Configuration menu
    Copy the full SHA
    8b7356b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14127aa View commit details
    Browse the repository at this point in the history
  3. Add any value (#501)

    * Add link for fewer_rows_than schema test in docs (#465)
    
    * Update get_query_results_as_dict example to demonstrate accessing columnar results as dictionary values (#474)
    
    * Update get_qu
    ery_results_as_dict example to demonstrate accessing columnar results as dictionary values
    
    * Use slugify in example
    
    * Fix slugify example with dbt_utils. package prefix
    
    Co-authored-by: Elize Papineau <[email protected]>
    
    * Add note about not_null_where deprecation to Readme (#477)
    
    * Add note about not_null_where deprecation to Readme
    
    * Add docs to unique_where test
    
    * Update pull_request_template.md to reference `main` vs `master` (#496)
    
    * Correct coalesce -> concatenation typo (#495)
    
    * add any_value cross-db macro
    
    * Missing colon in test
    
    * Update CHANGELOG.md
    
    Co-authored-by: José Coto <[email protected]>
    Co-authored-by: Elize Papineau <[email protected]>
    Co-authored-by: Elize Papineau <[email protected]>
    Co-authored-by: Joe Ste.Marie <[email protected]>
    Co-authored-by: Niall Woodward <[email protected]>
    6 people committed Feb 18, 2022
    Configuration menu
    Copy the full SHA
    46fcdf6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1baab73 View commit details
    Browse the repository at this point in the history
  5. Fix changelog

    joellabes committed Feb 18, 2022
    Configuration menu
    Copy the full SHA
    58af46e View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2022

  1. Second take at fixing pivot to allow single quotes (#503)

    * fix pivot : in pivoted column value, single quote must be escaped (on postgresql)
    else ex. syntax error near : when color = 'blue's'
    
    * patched expected
    
    * single quote escape : added dispatched version of the macro to support bigquery & snowflake
    
    * second backslash to escape in Jinja, change case of test file columns
    
    Let's see if other databases allow this
    
    * explicitly list columns to compare
    
    * different tests for snowflake and others
    
    * specific comparison seed
    
    * Don't quote identifiers for apostrophe, to avoid BQ and SF problems
    
    * Whitespace management for macros
    
    * Update CHANGELOG.md
    
    Co-authored-by: Marc Dutoo <[email protected]>
    joellabes and mdutoo committed Feb 22, 2022
    Configuration menu
    Copy the full SHA
    5243381 View commit details
    Browse the repository at this point in the history
  2. Add bool or cross db (#504)

    * Create bool_or cross-db func
    
    * Forgot a comma
    
    * Update CHANGELOG.md
    joellabes committed Feb 22, 2022
    Configuration menu
    Copy the full SHA
    2cfe8c0 View commit details
    Browse the repository at this point in the history
  3. Code review tweaks

    joellabes committed Feb 22, 2022
    Configuration menu
    Copy the full SHA
    e4cbf62 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf79a81 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2022

  1. Configuration menu
    Copy the full SHA
    a2b6684 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.md

    joellabes committed Mar 3, 2022
    Configuration menu
    Copy the full SHA
    15627b9 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2022

  1. Add _is_ephemeral test to get_column_values (#518)

    * Add _is_ephemeral test
    
    Co-authored-by: Elize Papineau <[email protected]>
    epapineau and Elize Papineau committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    3e814b2 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. Add deduplication macro (#512)

    * Update README.md
    
    * Mutually excl range examples in disclosure triangle
    
    * Fix union_relations error when no include/exclude provided
    
    * Fix union_relations error when no include/exclude provided (#509)
    
    * Update CHANGELOG.md
    
    * Add dedupe macro
    
    * Add test for dedupe macro
    
    * Add documentation to README
    
    * Add entry to CHANGELOG
    
    * Implement review
    judahrand committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    3a4cc94 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. Typed materialized views as views (#525)

    * Typed materialized views as views
    
    * Update get_relations_by_pattern.sql
    
    * Moving fix from get_tables_by_pattern_sql
    
    reverting changes to this file to add a fix to the macro get_tables_by_pattern_sql
    
    * removing quoting from table_type
    
    removing quoting from table_type as this was causing an error when calling this macro within get_tables_by_pattern_sql
    
    * calling get_table_types_sql for materialized views
    
    calling get_table_types_sql macro to handle materialized views in sources.
    luisleon90 committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    e2f6ba7 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. Add alias argument to deduplicate macro (#526)

    * Add `alias` argument to `deduplicate
    
    * Test `alias` argument
    
    * Rename `alias` to `relation_alias`
    judahrand committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    96c461b View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2022

  1. Fix/use generic test naming style instead of schema test (#521)

    * Updated Rreferences to 'schema test' in README along with small improvements to test descriptions.  Updates were also carried out in folder structure and integration README
    
    * Updated references to 'schema test' in Changelog
    
    * updated changelog with changes to documentation and fproject file structure
    
    * Apply suggestions from code review
    
    Update macro descriptions to be "asserts that"
    
    * Update CHANGELOG.md
    
    * Update README.md
    
    Co-authored-by: Joel Labes <[email protected]>
    b-moynihan and joellabes committed Mar 28, 2022
    Configuration menu
    Copy the full SHA
    839a4fc View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2022

  1. Remove extraneous whitespace (#529)

    * rm whitespace from date_trunc
    
    * datediff
    
    * rm uncessary whitespace control
    
    * change log
    
    * fix CHANGELOG
    
    * address comments
    SunriseLong committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    31577cb View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. Feature/add listagg macro (#530)

    * Update README.md
    
    * Mutually excl range examples in disclosure triangle
    
    * Fix union_relations error when no include/exclude provided
    
    * Fix union_relations error when no include/exclude provided (#509)
    
    * Update CHANGELOG.md
    
    * Add to_condition to relationships where
    
    * very minor nit - update "an new" to "a new" (#519)
    
    * add quoting to split_part (#528)
    
    * add quoting to split_part
    
    * update docs for split_part
    
    * typo
    
    * corrected readme syntax
    
    * revert and update to just documentation
    
    * add new line
    
    * Update README.md
    
    * Update README.md
    
    * Update README.md
    
    Co-authored-by: Joel Labes <[email protected]>
    
    * add macro to get columns (#516)
    
    * add macro to get columns
    
    * star macro should use get_columns
    
    * add adapter.
    
    * swap adapter for dbt_utils
    
    Co-authored-by: Joel Labes <[email protected]>
    
    * update documentation
    
    * add output_lower arg
    
    * update name to get_filtered_columns_in_relation from get_columns
    
    * add tests
    
    * forgot args
    
    * too much whitespace removal
    
        -----------
        Actual:
        -----------
        --->"field_3"as "test_field_3"<---
    
        -----------
        Expected:
        -----------
        --->"field_3" as "test_field_3"<---
    
    * didnt mean to move a file that i did not create. moving things back.
    
    * remove lowercase logic
    
    * limit_zero
    
    Co-authored-by: Joel Labes <[email protected]>
    
    * Add listagg macro and integration test
    
    * remove type in listagg macro
    
    * updated integration test
    
    * Add redshift to listagg macro
    
    * remove redshift listagg
    
    * explicitly named group by column
    
    * updated default values
    
    * Updated example to use correct double vs. single quotes
    
    * whitespace control
    
    * Added redshift specific macro
    
    * Remove documentation
    
    * Update integration test so less likely to accidentally work
    
    Co-authored-by: Joel Labes <[email protected]>
    
    * default everything but measure to none
    
    * added limit functionality for other dbs
    
    * syntax bug for postgres
    
    * update redshift macro
    
    * fixed block def control
    
    * Fixed bug in redshift
    
    * Bug fix redshift
    
    * remove unused group_by arg
    
    * Added additional test without order by col
    
    * updated to regex replace
    
    * typo
    
    * added more integration_tests
    
    * attempt to make redshift less complicated
    
    * typo
    
    * update redshift
    
    * replace to substr
    
    * More explicit versions with added complexity
    
    * handle special characters
    
    Co-authored-by: Joel Labes <[email protected]>
    Co-authored-by: Jamie Rosenberg <[email protected]>
    Co-authored-by: Pat Kearns <[email protected]>
    4 people committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    1a517d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    947f6c0 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Configuration menu
    Copy the full SHA
    72a5150 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a0474b View commit details
    Browse the repository at this point in the history
  3. rm whitespace

    joellabes committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    ab1cb11 View commit details
    Browse the repository at this point in the history