azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

cannot import name 'TabularTranslator'

Open yashbhutoria opened this issue 6 years ago • 15 comments

  • Package Name: azure-mgmt-datafactory
  • Package Version: 0.10.0
  • Operating System: Windows
  • Python Version: 3.6.8

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

yashbhutoria avatar Apr 01 '20 15:04 yashbhutoria

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

kaerm avatar Apr 01 '20 17:04 kaerm

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

nickzhums avatar Apr 02 '20 00:04 nickzhums

@changlong-liu to have a look, thanks.

RodgeFu avatar Apr 02 '20 16:04 RodgeFu

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

ghost avatar Apr 04 '20 01:04 ghost

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.

changlong-liu avatar Apr 04 '20 01:04 changlong-liu

@shawnxzq, can you take a look?

lmy269 avatar Apr 06 '20 17:04 lmy269

@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!

shawnxzq avatar Jul 22 '20 06:07 shawnxzq

i have the same issue. please fix, thanks

schmocker avatar Aug 24 '20 10:08 schmocker

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

changlong-liu avatar Aug 24 '20 12:08 changlong-liu

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

shawnxzq avatar Sep 08 '20 09:09 shawnxzq

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

shawnxzq avatar Sep 27 '20 10:09 shawnxzq

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

changlong-liu avatar Sep 28 '20 02:09 changlong-liu

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

shawnxzq avatar Oct 20 '20 12:10 shawnxzq

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

shawnxzq avatar Oct 26 '20 05:10 shawnxzq

Thanks @shawnxzq !

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

changlong-liu avatar Oct 26 '20 05:10 changlong-liu