-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python regressions in 1.9.0beta (#857)
- Loading branch information
Showing
9 changed files
with
88 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
{% macro get_columns_comments(relation) -%} | ||
{% call statement('get_columns_comments', fetch_result=True) -%} | ||
describe table {{ relation|lower }} | ||
{% endcall %} | ||
|
||
{% do return(load_result('get_columns_comments').table) %} | ||
{% endmacro %} | ||
|
||
{% macro get_columns_comments_via_information_schema(relation) -%} | ||
{% call statement('repair_table', fetch_result=False) -%} | ||
REPAIR TABLE {{ relation|lower }} SYNC METADATA | ||
{% endcall %} | ||
{% call statement('get_columns_comments_via_information_schema', fetch_result=True) -%} | ||
select | ||
column_name, | ||
full_data_type, | ||
comment | ||
from `system`.`information_schema`.`columns` | ||
where | ||
table_catalog = '{{ relation.database|lower }}' and | ||
table_schema = '{{ relation.schema|lower }}' and | ||
table_name = '{{ relation.identifier|lower }}' | ||
{% endcall %} | ||
|
||
{% do return(load_result('get_columns_comments_via_information_schema').table) %} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters