Starting in Strategy One (March 2025), you can define Data Source SQL as your catalog retrieval mode for your Databricks data source.
Note: ODBC calls is the default Catalog Retrieval Mode option and works for legacy Hive metastore and Unity Catalog.
To set Data Source SQL for catalog details:
Using the default SQL, you can retrieve catalog details of Unity Catalog. To define the SQL scope, edit the following SQL statements replacing
'#?CATALOG_NAME?'with your catalog name and
'#?SCHEMA_NAME?#'with your schema name.
select table_catalog || '.' || table_schema as NAME_SPACE, TABLE_NAME TAB_NAME from system.information_schema.tables where table_catalog = '#?CATALOG_NAME?#' and table_schema = '#?SCHEMA_NAME?#' order by 1,2
select table_catalog || '.' || table_schema as NAME_SPACE, TABLE_NAME TAB_NAME, column_name COL_NAME, data_type DATA_TYPE, CASE WHEN data_type IN ('TINYINT','BYTE') THEN 1 WHEN data_type IN ('BIGINT', 'LONG','DOUBLE') THEN 8 WHEN data_type IN ('INT','FLOAT') THEN 4 WHEN data_type IN ('SMALLINT','SHORT') THEN 2 WHEN data_type IN ('DATE') THEN 10 WHEN data_type IN ('TIMESTAMP') THEN 26 ELSE -1 END AS DATA_LEN from system.information_schema.columns where table_catalog = '#?CATALOG_NAME?#' and table_schema = '#?SCHEMA_NAME?#' and TABLE_NAME in (#TABLE_LIST#) order by 1,2KB485849: Connect to Databricks Unity Catalog in Update 8 or Earlier