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 databases optional #2489

Merged
merged 2 commits into from
May 26, 2020
Merged

Make databases optional #2489

merged 2 commits into from
May 26, 2020

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented May 26, 2020

resolves #2487

Description

This makes spark viable with database=None!

generate_database_name is now an adapter macro, most things that insisted database was a str now accept Optional[str].

Also, database-specific stats description fields can now be None. Otherwise due to agate behavior, even the empty string isn't allowed.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR The fact that existing tests don't fail should be sufficient here!
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label May 26, 2020
@beckjake beckjake requested review from drewbanin and kwigley May 26, 2020 18:37
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this LGTM

Copy link
Contributor

@kwigley kwigley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@beckjake beckjake merged commit 3e23a5f into dev/octavius-catto May 26, 2020
@beckjake beckjake deleted the fix/catalog-allow-none branch May 26, 2020 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants