-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fix the catalog, making use of rc3 fixes #92
Conversation
c8c1e32
to
78f2ae1
Compare
I took this for a spin, and I'm still seeing the two errors as before:
I think we still need a way to:
|
5b0a09a
to
6eb854f
Compare
I checked out the latest code in this branch, and I'm still seeing similar issues as above. Sources + snapshotsThe first error case now returns
The way to resolve the error currently is by setting the database config to the same value as the schema. This double-setting shouldn't be necessary, and it's counterintuitive because we don't want users to use the Catalog generationThe second error case is still
Somehow, dbt needs to know to run Next steps?Ideally, the scenarios above would be included in our integration testing suite, which we know is a ways away from where it needs to be. If it would be helpful in continuing work on this branch, I can try adding to the
I think the highest-priority next step is figuring out if these are fixes we can make within the plugin, or if there is a lingering core issue in the way. |
Fix catalog generation to properly handle 1 database (None!) with many schemas Update unit tests
27e2b11
to
76c23db
Compare
I've added fixes to the issues you identified.
This happens in the adapter portion of the code, so yup! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works like a dream! Thank you for taking it the last mile
resolves #85
resolves #89
resolves #90
Of course, 0.17.0rc3 doesn't exist yet, but it will soon, and it will fix these problems!0.17.3 exists and this points to it now.If it was resolved by dbt-labs/dbt-core#2489, I marked it as resolved by this PR - peeling the consequences of the two apart sounds annoying.
This PR takes the opinionated stance that you aren't allowed to use
database
in spark, it's always None. There is probably room to go further (maybespark__generate_database_name
should raise if yourcustom_database_name
is non-None), but I think this is functional._parse_relation
- it fully duplicates other code now.DEFAULT_TYPE_TESTER
for creating the agate table. This prevents an issue with1
row becomingTrue
rows in the statistics output.generate_database_name
macro to returnNone
.