Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.56k stars 2.78k forks source link

Job creation fails if integer input is set to 0 in a pipeline #35285

Open skakunm opened 5 months ago

skakunm commented 5 months ago

I have a pipeline component written in yaml file. I load this using load_component. I set all the inputs in python. And then I call ml_client.jobs.create_or_update() and this fails. I traced the issue to line linked below, which removes input if value is equivalent to false/none/zero, because of this I get an error saying that an input is missing when integer input is set to 0. If this is intended behavior, it should be documented somewhere, but to me it seems like a bug. https://github.com/Azure/azure-sdk-for-python/blob/32c2e5f9ba9729710210f0c88d33be1f39380bf5/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_builders/pipeline.py#L160

github-actions[bot] commented 5 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-ml-sdk @azureml-github.