Skip to content

Commit

Permalink
switched to exa_all metadata tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ilikutle committed Aug 11, 2023
1 parent 78c3bb0 commit 4ec4415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbt/include/exasol/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ ALTER_COLUMN_TYPE_MACRO_NAME = 'alter_column_type'
lower(table_schema) as [schema],
lower(table_type) as table_type
from (
select table_name,table_schema,'table' as table_type from sys.exa_user_tables
select table_name,table_schema,'table' as table_type from sys.exa_all_tables
union
select view_name, view_schema,'view' from sys.exa_user_views
select view_name, view_schema,'view' from sys.exa_all_views
)
where upper(table_schema) = '{{ schema |upper }}'
{% endcall %}
Expand Down Expand Up @@ -98,7 +98,7 @@ AS
column_maxsize,
column_num_prec,
column_num_scale
from exa_user_columns
from exa_all_columns
where upper(column_table) = '{{ relation.identifier|upper }}'
and upper(column_schema) = '{{ relation.schema|upper }}'
order by column_ordinal_position
Expand Down

0 comments on commit 4ec4415

Please # to comment.