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

development: ref inside if is not picked up #373

Closed
cmcarthur opened this issue Apr 10, 2017 · 2 comments
Closed

development: ref inside if is not picked up #373

cmcarthur opened this issue Apr 10, 2017 · 2 comments

Comments

@cmcarthur
Copy link
Member

{% if adapter.already_exists(schema, table) %}
  {{ref('model')}}
{% endif %}

results in the dreaded ref() was used in an invalid context

@cmcarthur
Copy link
Member Author

cc @drewbanin

@drewbanin
Copy link
Contributor

@cmcarthur closing this -- we can reopen if we decide to go the lexer route ;)

yu-iskw pushed a commit to yu-iskw/dbt that referenced this issue Aug 17, 2021
* Tidy up changelog

* Add 0.7.0 entry to changelog

* Add order_by argument to get_column_values (dbt-labs#349)

* Add slugify macro to utils, use in pivot macro (dbt-labs#314)

* 0.20.0 compatibility (dbt-labs#371)

* Explicitly redefine Redshift -> default

* Upgrade generic tests

* Rm namespaces macro. New dispatch syntax

* Run tests with 0.20.0rc1

* Update changelog, readme

Co-authored-by: Jeremy Cohen <[email protected]>

* Simplify concat (dbt-labs#373)

* Postgres also have an alternative concat binary operation (dbt-labs#296)

* Update default implementation of concat macro

Co-authored-by: Christophe Duong <[email protected]>

Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Christophe Duong <[email protected]>
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

No branches or pull requests

2 participants