notebook output in lookup activity adf

Shambhu Rai 1,411 Reputation points
2023-09-25T19:01:39.47+00:00

Hi Expert,

I am running in select count(* ) from employee on databricks notebook getting output as 1000 wanted to pass that output to another lookup..

count(* ) from employee output =10000

how can i do it

User's image

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,474 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,181 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,740 questions
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 32,991 Reputation points Microsoft Employee
    2023-09-26T09:38:03.9933333+00:00

    Hi Shambhu Rai ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your question here.

    As per my understanding, you are trying to pass the output of databricks notebook into lookup activity in ADF pipeline. Please let me know if that is not the correct understanding.

    1. In your notebook, you may call dbutils.notebook.exit("returnValue") and corresponding "returnValue" will be returned to the service.
    2. You can consume the output in the service by using expression such as @{activity('databricks notebook activity name').output.runOutput}

    If you are passing JSON object you can retrieve values by appending property names. Example: @{activity('databricks notebook activity name').output.runOutput.PropertyName}

    For more details, kindly check the below documentation: Passing parameters between notebooks and pipelines

    Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.