You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a recent enhancement the TABLES statements have been modified to use = rather than ilike if the "dremio:exact_search_enabled": true is specified. #134
I am not sure if it was intended behaviour or not that is why marking it as a bug the dbt docs generate seems to be ignoring that and still fires requests with the ilike command.
/* {"app": "dbt", "dbt_version": "1.5.2", "profile_name": "data_product_demo", "target_name": "dev", "connection_name": "location"} */
with cte as (
select (case when position('.'incolumns.table_schema) >0
then substring(columns.table_schema, 1, position('.'incolumns.table_schema) -1)
else columns.table_schema
end) as table_database
,(case when position('.'incolumns.table_schema) >0
then substring(columns.table_schema, position('.'incolumns.table_schema) +1)
else 'no_schema'
end) as table_schema
,columns.table_name
,lower(t.table_type) as table_type
,cast(nullasvarchar) as table_comment
,column_name
,ordinal_position as column_index
,lower(data_type) as column_type
,cast(nullasvarchar) as column_comment
,cast(nullasvarchar) as table_owner
from information_schema."tables"as t
joininformation_schema.columnson (t.table_schema=columns.table_schemaandt.table_name=columns.table_name)
wheret.table_type<>'SYSTEM_TABLE'and (ilike( t.table_schema, 'tablename'))
)
select*from cte
order by table_schema
,table_name
,column_index
Expected Behavior
/* {"app": "dbt", "dbt_version": "1.5.2", "profile_name": "data_product_demo", "target_name": "dev", "connection_name": "location"} */
with cte as (
select (case when position('.'incolumns.table_schema) >0
then substring(columns.table_schema, 1, position('.'incolumns.table_schema) -1)
else columns.table_schema
end) as table_database
,(case when position('.'incolumns.table_schema) >0
then substring(columns.table_schema, position('.'incolumns.table_schema) +1)
else 'no_schema'
end) as table_schema
,columns.table_name
,lower(t.table_type) as table_type
,cast(nullasvarchar) as table_comment
,column_name
,ordinal_position as column_index
,lower(data_type) as column_type
,cast(nullasvarchar) as column_comment
,cast(nullasvarchar) as table_owner
from information_schema."tables"as t
joininformation_schema.columnson (t.table_schema=columns.table_schemaandt.table_name=columns.table_name)
wheret.table_type<>'SYSTEM_TABLE'andt.table_schem='tablename'
)
select*from cte
order by table_schema
,table_name
,column_index
There are a few places where ilike seems to be used, so I guess for the nature of the optimisation it should be changed in all of those, or maybe creating a central function that wraps the logic and gets called in all the other macros.
Is there an existing issue for this?
Current Behavior
With a recent enhancement the TABLES statements have been modified to use = rather than ilike if the "dremio:exact_search_enabled": true is specified. #134
I am not sure if it was intended behaviour or not that is why marking it as a bug the dbt docs generate seems to be ignoring that and still fires requests with the ilike command.
Expected Behavior
Steps To Reproduce
Just running dbt docs generate should do
Environment
Relevant log output
No response
The text was updated successfully, but these errors were encountered: