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

make ref work more like this #470

Closed
drewbanin opened this issue Jun 28, 2017 · 0 comments
Closed

make ref work more like this #470

drewbanin opened this issue Jun 28, 2017 · 0 comments
Milestone

Comments

@drewbanin
Copy link
Contributor

This is an object with a __repr__ that renders the model as "schema"."table". You can also access This.table, This.schema, and This.name

Ideally, ref would return a similar type of object. Then you could do:

{% set my_model = ref("my_model") %}
adapter.get_columns_in_table(my_model.schema, my_model.table)

Or, we could just pass the return value from ref through to get_columns_in_table, and the function would handle grabbing schema/table from the ref'd model.

This is going to be super important when model can be materialized in different schemas

@drewbanin drewbanin added this to the 0.9.0 alpha-2 milestone Sep 19, 2017
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

1 participant