cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to pass configuration values to a Delta Live Tables job through the Delta Live Tables API

labromb
Contributor

Hi Community,

I have successfully run a job through the API but would need to be able to pass parameters (configuration) to the DLT workflow via the API

I have tried passing JSON in this format:

{ 
    "full_refresh": "true",
    "configuration": [ 
        {
               "config1": "config1_value",
               "config2": "config2_value"
          }
    ]
}
 
 
 

The API seems happy with the structure of the JSON but config1 and config2 are not being overridden

Any help greatly appreciated.

8 REPLIES 8

Hi @Kaniz Fatmaโ€‹,

Just wondered if there was any update on this. This is quite an important aspect of how we would implement DLT pipelines so would be good to know if it can be done, or if it's coming.

Many thanks.

labromb
Contributor

Hi @Kaniz Fatmaโ€‹, thanks for the detailed reply. Looks like the response is talking about a job, not a delta live tables pipeline. Apologies if my initial question was not clear enough...

I am using the Delta Live Tables API:

Delta Live Tables API guide - Azure Databricks | Microsoft Learn

And want to refresh a DLT pipeline... I can initiate a refresh but but need to be able to override the configuration of the DLT pipeline with the values I supply.

I am using Azure Data Factory to call the API so just need to know what the JSON format needs to be in the request body so I can override the parameters

Manjula_Ganesap
Contributor

@labromb - Please let me know if you found a solution to your problem. I'm trying to do the same thing. 

Manjula_Ganesap
Contributor

@Mo - I tried the same thing but i do not see the DLT pipeline config being overriden. The Web activity in ADF has the below config:

Manjula_Ganesap_0-1692886292298.png

and the DLT pipeline config has 

Manjula_Ganesap_1-1692886330784.png

Please let me know what I'm doing wrong. 

 

Manjula_Ganesap
Contributor

@Mo  - Thank you. I will try this out now and keep you posted. I am directly passing the parameters in the body of the Web Activity with the POST command. I will try the update and let you know. 

Thank you so much for the suggestion. 

@Manjula_Ganesap  Can you let us know what you did to get this working? I have a similar use case.

BLM
New Contributor II

@Manjula_Ganesap how exactly did you format the body in the ADF Web activity? it isn't working for me, I tried with the configuration json object, and also with the parameter directly, but the configuration value isn't overwritten in the dlt pipeline execution.

Only difference in my use case is that the dlt Advanced setting has more than one configuration variable and I only need to overwrite one.

Should I add all of them to the API call body to get one of them overwritten?

Manjula_Ganesap
Contributor

@Mo - it worked. Thank you so much.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group