microsoft / azdo-databricks

A set of Build and Release tasks for Building, Deploying and Testing Databricks notebooks
MIT License
25 stars 30 forks source link

Quotes are incorrectly escaped in notebook parameters #19

Open dgregoraz opened 4 years ago

dgregoraz commented 4 years ago

A notebook has a widget called args that receives a json object as a value. A correct execution requires something like this:

{"args":"{\"key1\":\"value1\",\"key2\":\"value2\"}"}

But when this text is put in the Execute Notebook task, Databricks receives this content:

{"args":"{\\key1\\:\\value1\\,\\key2\\:\\value2\\}"}

(Quotes are replaced by double backslashes and the json becomes invalid)