-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
support "with no schema binding" on redshift views #523
Comments
There is currently a bug in |
Hey @drewbanin, this is a nice feature to add. |
Just a note -- I'm experimenting using Spectrum to reference external data with dbt. It turns out that you can't create VIEWs in Redshift that reference Spectrum tables unless |
@HarlanH totally on the same page here - we just created this issue to investigate Spectrum in dbt. I think this should be relatively easy to add to the materialization. At this point, we really want to get 0.9.0 out, then I think it makes sense to turn our attention to features like this for an 0.9.1 release shortly thereafter. Another compelling idea is to instead add this materialization to the redshift package. This would allow us to iterate on the Redshift view materialization (and build other spectrum helpers) without needing to do a full-fledged release of dbt. I'll have a chat with @cmcarthur, but know that this is definitely on our radar. |
FYI, this redshift bug should be fixed in a coming-soon release: https://forums.aws.amazon.com/ann.jspa?annID=5149
|
This is pretty close to being done... Waiting for our Redshift cluster to be patched with the latest release to do some testing! |
Hey guys, what's an ETA for the fix ? |
Hey @drewbanin, I'd like to help, installed from the For the record -- I usually do not specify any config in my views, so it's a plain SQL query wrapped later in a view with the help of your tool. |
@izdi this hasn't been merged yet (but will be today -- cc @cmcarthur). When that happens, you'll be able to use The compiled code in create view model as (
select ...
) with no schema binding; To see a list of the late-binding views in your Redshift cluster, you can use this query: select distinct view_schema, view_name
from pg_get_late_binding_view_cols()
cols(view_schema name, view_name name, col_name name, col_type varchar, col_num int) |
This is going out in 0.9.1, closing |
Release ETA ? |
Hey @izdi - we had a bit of a delay over the holiday. All 0.9.1 PRs are merged into development (including this one) at this point. We're doing some final testing, and we're planning to release this Friday. We'd love it if you could install from |
http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_VIEW.html
This should almost certainly be the default in production, but there may be some benefit to turning it off in development. It's convenient that view creation currently fails if a nonexistent column/table is referenced
The text was updated successfully, but these errors were encountered: