-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upgrade dbt-utils #7
Conversation
How about #4? Should it be closed? |
5648dc3
to
d8d6f43
Compare
d8d6f43
to
4f513f6
Compare
docker/dbt/Dockerfile
Outdated
# TODO: change with release version | ||
RUN pip install git+https://github.com/starburstdata/dbt-trino.git | ||
# TODO: change with release version once PR is merged | ||
RUN pip3 install git+https://github.com/mdesmet/dbt-trino.git@feature/get_colums_in_relation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed after we merge that branch on dbt-trino
macros/dbt_utils/sql/date_spine.sql
Outdated
|
||
select * from filtered | ||
|
||
{% endmacro %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: new line here and in other places
{% macro trino__date_spine(datepart, start_date, end_date) %} | ||
|
||
|
||
{# call as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it comes from the original dbt implementation, I would say it's ok to keep it.
{%- macro trino__deduplicate(relation, partition_by, order_by) -%} | ||
{# | ||
-- This is a temporary solution until https://github.com/trinodb/trino/issues/14455 is resolved | ||
-- It leaks the rn column compared to the NATURAL JOIN solution from dbt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What it means rn
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the NATURAL JOIN implementation (which is not supported) would not leak the row number column as output of the deduplicate query.
ce00d7f
to
24836a5
Compare
No description provided.