binste / dbt-ibis

Write your dbt models using Ibis
https://binste.github.io/dbt-ibis/
Apache License 2.0
47 stars 2 forks source link

Feature: Implicit model dependencies #59

Open feluelle opened 3 months ago

feluelle commented 3 months ago

It would be great if we could make dependencies implicit by matching function arguments names to model names instead of having to also define them explicitly via ref(...).

binste commented 2 months ago

Sounds good! It would not work for sources where one also needs to provide the source name but maybe we could fall back on matching by function arguments if there is no depends_on decorator and in that case, all function arguments must be named after models. If a depends_on decorator is present, it's used instead.

Not sure when I'd get to this as it's a nice-to-have but not an urgent fix. I'm open for a PR on this if anyone wants to pick it up.