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

do not double-quote the database name (#2267) #2281

Merged
merged 2 commits into from
Apr 1, 2020

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Mar 31, 2020

resolves #2267

Description

I couldn't test this because nothing in dbt actually uses the default implementation (maybe the macro should just go away entirely in 0.17?). But it is what I did to get dbt-presto working, and that seems to work fine.

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
  • 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 Mar 31, 2020
@beckjake beckjake requested a review from drewbanin April 1, 2020 13:45
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.

One quick thing to address on this one

@@ -189,7 +189,7 @@

{% macro default__information_schema_name(database) -%}
{%- if database -%}
{{ adapter.quote_as_configured(database, 'database') }}.INFORMATION_SCHEMA
database.INFORMATION_SCHEMA
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not want {{ database }} here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes 🤦‍♂ today's lesson is "why we copy+paste instead of re-writing things"

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.

shipit

@beckjake beckjake merged commit 79e8a86 into dev/0.16.1 Apr 1, 2020
@beckjake beckjake deleted the fix/quoted-information-schema branch April 1, 2020 16:03
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.

2 participants