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

Drop fivetran_utils by copying code. #97

Merged
merged 1 commit into from
Oct 16, 2022

Conversation

maciejklimek
Copy link
Collaborator

What

dbt_fivetran_utils no longer recommends using it in external packages, see https://github.com/fivetran/dbt_fivetran_utils/tree/v0.4.0

How

Directly copied code for percentile, and json_extract macros from their repo. These were our only dependencies.

@@ -1,11 +0,0 @@
{% macro percentile(percentile_field, partition_field, percent) -%}

{{ adapter.dispatch('percentile_impl', 're_data') (percentile_field, partition_field, percent) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of removing this @bachng2017 Trino re-data version: https://github.com/bachng2017/dbt-re-data-trino/blob/main/macros/utils/percentile.sql would need some update (basically removing impl from the name). I think it would still be clearer and that's good with me. @bachng2017 Any objections? :)

@maciejklimek maciejklimek merged commit 61972ea into main Oct 16, 2022
@maciejklimek maciejklimek deleted the maciek-drop-fivetrans-deps branch October 16, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants