简体   繁体   中英

How to query Azure databricks data on Azure datafactory?

My source data is in ADLS and its table format is in ADB data.

Now I'm creating a lookup activity inside the ADF pipeline where I have to write a SELECT query on the table present in ADB.

Can you please share your suggestions on how this link can be achieved?

The query property in the lookup activity accepts an expression, not a SQL statement.

Ref: https://docs.microsoft.com/en-us/azure/data-factory/control-flow-expression-language-functions

You can set the source as a Stored Procedure or you can use the Copy activity to query the results from the result of the lookup.

See the example here: https://docs.microsoft.com/en-us/azure/data-factory/control-flow-lookup-activity#pipeline

if I understand the ask here you are trying to connect to an ADB instance and exeecute an query. Lookup activity does not support ADB. https://docs.microsoft.com/en-us/azure/data-factory/control-flow-lookup-activity AFAIK, you dont need to go the ADB route, you can directly query ADLS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM