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.53k stars 2.76k forks source link

cannot import name 'TabularTranslator' #10597

Closed yashbhutoria closed 3 years ago

yashbhutoria commented 4 years ago

Describe the bug TabularTranslator model is missing

To Reproduce Steps to reproduce the behaviour:

  1. from azure.mgmt.datafactory.models import TabularTranslator

Expected behaviour The model should get imported. The "translator" parameter in CopyActivity model accepts an object. There used to be a TabularTranslator model in version 0.7.0 of azure-mgmt-datafactory. https://docs.microsoft.com/en-us/python/api/azure-mgmt-datafactory/azure.mgmt.datafactory.models.copyactivity?view=azure-python

Screenshots image

Additional context I'm trying to map fields between source and sink in a CopyActivity

kaerm commented 4 years ago

@yashbhutoria thanks for reporting this, tagging the right team to take a look at this @nickzhums

nickzhums commented 4 years ago

@RodgeFu please have someone take a look, thanks :)

RodgeFu commented 4 years ago

@changlong-liu to have a look, thanks.

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shawnxzq, @lmy269.

changlong-liu commented 4 years ago

Hi service team, I see TabularTranslator is defined in a separated swagger file entityTypes.json, which is not included in the readme.md for datafactory.

lmy269 commented 4 years ago

@shawnxzq, can you take a look?

shawnxzq commented 4 years ago

@changlong-liu The TabularTranslator is indeed defined in the entityTypes/Pipeline.json, could you please double confirm whether we have some infra issue that blocks customer to use this? Thanks!

schmocker commented 4 years ago

i have the same issue. please fix, thanks

changlong-liu commented 4 years ago

Hi @shawnxzq , though TabularTranslator is defined in entityTypes/Pipeline.json, but the file it self is not included in the readme file. Please add the file into the tags to enable the definitions. For instance https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/readme.md#tag-package-2018-06

shawnxzq commented 4 years ago

We will fix it by adding piepeline.json as input file, thanks!

shawnxzq commented 3 years ago

@changlong-liu we already fixed the issue, please close this one, thanks!

changlong-liu commented 3 years ago

Hi @shawnxzq , if fixed in swagger, would you submit release request for Python?

shawnxzq commented 3 years ago

@changlong-liu Python SDK is released, could you please double confirm the issue is fixed? If yes, please close this issue, thx!

shawnxzq commented 3 years ago

SDK released now, @changlong-liu, please confirm and help close the issue.

changlong-liu commented 3 years ago

Thanks @shawnxzq !

Close this issue since fix released: https://pypi.org/project/azure-mgmt-datafactory/0.14.0/