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

Snowflake: get_tables_by_pattern_sql handling external tables #351

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update macros/sql/get_tables_by_pattern_sql.sql
Co-authored-by: Jeremy Cohen <[email protected]>
  • Loading branch information
Chad Upjohn and jtcohen6 authored Apr 6, 2021
commit ddaf5cf0d1fbe0d072866e6331fe2ff626aa6643
1 change: 1 addition & 0 deletions macros/sql/get_tables_by_pattern_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
case table_type
when 'BASE TABLE' then 'table'
when 'EXTERNAL TABLE' then 'external'
upjohnc marked this conversation as resolved.
Show resolved Hide resolved
when 'MATERIALIZED VIEW' then 'materializedview'
else lower(table_type)
end as "table_type"
from {{ database }}.information_schema.tables
Expand Down