-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add info support for late binding views #159
Conversation
This looks good, but before merging this in, we'll need to have a test to demonstrate the behavior and to alert of us regressions as changes are made in the future. Would you be able to add a test for this? If you look through existing tests, there are examples of tests that run against a real Redshift instance. They won't run automatically for a forked PR like this, but I can manually kick them off to verify behavior once the test is added. |
I don't have write access to this fork but the test should look something like...
Key differences between the normal view reflection test and this test is:
Can an admin push to this branch? |
See a test run in https://travis-ci.org/sqlalchemy-redshift/sqlalchemy-redshift/jobs/495640544
Does that behavior of |
I can confirm that the view definitions for late-binding views look really strange compared to those from normal views.
I have no idea why but it feels like an issue on redshift's side? Clearly, for late-binding views it appears like redshift is returning the entire DDL instead of the underlying select query. ¯\(ツ)/¯ all the way down |
Yes, this looks to clearly be weirdness on the Redshift side. I'm going to get a working test put together, and I'll get this merged. |
I'm trying to post a question whether this is expected behavior to the Redshift AWS forum, but dear $deity that whole thing is terrible. edit: I can't post for a few hours while my account is created. This is fine. |
Passing test added in 7319ac2 |
Todos
Small change to the _get_all_column_info sql to enable column information for late binding views. Tested against our redshift with late binding views over normal and external tables. Resolves this issue apache/superset#4435