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

Feature/bigquery column comments #2402

Merged
merged 1 commit into from
May 7, 2020

Conversation

drewbanin
Copy link
Contributor

@drewbanin drewbanin commented May 6, 2020

resolves #2335

Description

Adds docs persistence for BQ columns.

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 May 6, 2020
@drewbanin drewbanin force-pushed the feature/bigquery-column-comments branch from 078217b to 71cbc27 Compare May 6, 2020 01:51
@drewbanin drewbanin marked this pull request as ready for review May 6, 2020 13:59
@drewbanin drewbanin requested a review from beckjake May 6, 2020 13:59
@@ -631,3 +631,12 @@ def __getitem__(self, name: str) -> Any:

def __contains__(self, name) -> bool:
return any((name in entry for entry in self._itersource()))


def sql_escape(string):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is more of a weird bigquery thing than an "SQL" thing. Can this just go in the biguery impl.py?

Copy link
Contributor

@beckjake beckjake left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@beckjake beckjake left a comment

Choose a reason for hiding this comment

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

This all looks reasonable to me. Glad to see some of this stuff moving into the adapter/config objects, I think it makes a lot more sense.

@drewbanin drewbanin merged commit 784ab79 into dev/octavius-catto May 7, 2020
@drewbanin drewbanin deleted the feature/bigquery-column-comments branch May 7, 2020 14:55
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.

Support persist docs on BigQuery: columns
2 participants