dbt-labs / spark-utils

Utility functions for dbt projects running on Spark
https://hub.getdbt.com/fishtown-analytics/spark_utils/latest/
Apache License 2.0
30 stars 15 forks source link

feature/dbt-expectations-shim #30

Open fivetran-joemarkiewicz opened 1 year ago

fivetran-joemarkiewicz commented 1 year ago

PR to address Issue #29

This PR adds a folder for shims of dbt-expectations macros. Specifically, this PR only adds a spark shim for the regexp_instr macro. This may be expanded in future PRs to add other shims for macros within this package.

I did not add anything to the integration_tests folder. Let me know if there are any updates needed on my end for this to be incorporated. A working implementation currently exists within the Fivetran dbt_google_ads_source package. The intention will be to remove this macro from the Fivetran package and into spark-utils for use by all.

fivetran-joemarkiewicz commented 1 year ago

Unsure why CircleCi is failing. Happy to make adjustments to my PR if needed.