select statement on notebook in lookup transformation in ADF

Shambhu Rai 1,411 Reputation points
2023-09-27T04:43:35.03+00:00

Hi Expert.

how to use the select statement on notebook to pass parameter in lookup transformation

Azure SQL Database
Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,559 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Smaran Thoomu 24,110 Reputation points Microsoft External Staff Moderator
    2023-09-27T11:42:55.7166667+00:00

    @Shambhu Rai Welcome to Microsoft Q&A platform and thanks for posting your question here. As I understand you want to pass the output of a Databricks notebook to a lookup activity in an Azure Data Factory pipeline:

    1. In the notebook, call dbutils.notebook.exit("returnValue"). This will return the specified value to the service.
    2. In your ADF pipeline, utilize the following expression to access the output: @{activity('databricks notebook activity name').output.runOutput}. This expression will provide the output of the Databricks notebook activity with the specified name.

    If, however, you need to use a select statement as a lookup parameter, you can create the expression by selecting 'Add Dynamic Content' and specifying the select statement there.

    Reference: Run a Databricks notebook

    I hope this helps! Let me know if you have any further questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.