Come configurare un'origine dati ODBC per DataBricks con Simba Spark ODBC Driver?

Come configurare un'origine dati ODBC per DataBricks con Simba Spark ODBC Driver?

CREATO IL 24 gen 2025 I AUTRICE Emma Camacho

CONNECTION STRING

Per questa Connection String è possibile partire da questo esempio, aggiungendo eventualmente altre impostazioni.

Driver=Simba Spark ODBC Driver; Host=xxxx.azuredatabricks.net; Port=443; HTTPPath=/sql/1.0/warehouses/xxxx; SSL=1; ThriftTransport=2; AuthMech=3; Database=xxxx; UID=token; PWD=*****;Schema=your_schema;Catalog=your_catalog;

oppure

Driver=Simba Spark ODBC Driver; Host=xxxx.azuredatabricks.net; Port=443; HTTPPath=/sql/1.0/warehouses/xxxx; SSL=1; ThriftTransport=2; AuthMech=11; Auth_Flow=1; Auth_Client_ID=<client id>; Auth_Client_Secret=<secret>;Auth_Scope=all-apis;Schema=your_schema;Catalog=your_catalog;

Nota: per poter utilizzare il Datasource Browser in M&D Designer e nei task, lo Schema e il Catalog devono essere inclusi nella Connection String e le seguenti query devono includere la clausola WHERE con table_schema.

FIELD QUERY SQL

Per questo campo, provare la seguente query e aggiungere la clausola WHERE necessaria:

SELECT Distinct table_name as TABLE_NAME, column_name as COLUMN_NAME FROM information_schema.columns where table_schema='<your_schema>'

TABLE QUERY SQL

Per questo campo, provare la seguente query e aggiungere la clausola WHERE necessaria:

SELECT Distinct table_name as TABLE_NAME FROM information_schema.tables where TABLE_TYPE = 'MANAGED' and table_schema='<your_schema>'

VIEW QUERY SQL

Per questo campo, provare la seguente query e aggiungere la clausola WHERE necessaria:

SELECT Distinct table_name as TABLE_NAME FROM information_schema.tables where TABLE_TYPE = 'VIEW' and table_schema='<your_schema>'

Per ulteriori informazioni, vedere

https://help.mail-and-deploy.com/docs/odbc-datasources

https://docs.databricks.com/en/sql/language-manual/information-schema/tables.html

Databricks ODBC and JDBC Drivers | Databricks on AWS

https://docs.databricks.com/en/_extras/documents/Simba-Apache-Spark-ODBC-Connector-Install-and-Configuration-Guide.pdf

https://learn.microsoft.com/en-us/azure/databricks/integrations/odbc/authentication


Info

Serve ulteriore assistenza?

Se desidera informazioni più dettagliate o ulteriore assistenza, visiti la nostra completa documentazione online. Le nostre risorse sono pensate per aiutarLa a utilizzare efficacemente tutte le funzionalità.