-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Ct 1919/get column schema from query macro core #6981
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
Ct 1919/get column schema from query macro core #6981
Conversation
…/table/columns_spec_ddl.sql For whitespace control in the dbt.log file! Co-authored-by: dave-connors-3 <[email protected]>
…s/models/table/columns_spec_ddl.sql " This reverts commit 59b0298.
|
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
| ) | ||
|
|
||
| @classmethod | ||
| def get_column_schema_from_cursor(cls, cursor: Any) -> List[Tuple[str, str]]: |
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.
TODO: change to -> List[Tuple[str, Any]]
| # sql = self._add_query_comment(sql) | ||
| # # auto_begin is ignored on bigquery, and only included for consistency | ||
| # query_job, iterator = self.raw_execute(sql) | ||
| # columns = [(field.name, field.field_type) for field in resp.iterator] |
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.
s/resp.iterator/iterator.schema
|
Closing in favor of #6986 |
resolves #6751
Description
Checklist
changie newto create a changelog entry