Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mssql - error with database that has table or column description #5344

Closed
alcoccoque opened this issue Jul 6, 2022 · 9 comments
Closed

mssql - error with database that has table or column description #5344

alcoccoque opened this issue Jul 6, 2022 · 9 comments
Labels
bug Bug report ingestion PR or Issue related to the ingestion of metadata

Comments

@alcoccoque
Copy link
Contributor

Describe the bug
Problem with Microsoft SQL Server ingest source. During ingestion for database that has table or column description error occur.

To Reproduce
Steps to reproduce the behavior:

  1. Create mssql yml configuration
    source:
      type: mssql
      config:
        # Coordinates
        host_port: localhost:1433
        database:  database

        # Credentials
        username: username
        password: password

        # Options
        use_odbc: "True"
        uri_args:
          driver: "ODBC Driver 17 for SQL Server"
          Encrypt: "yes"
          TrustServerCertificate: "Yes"
          ssl: "True"
    sink:
      type: "datahub-rest"
      config:
        server: "http://127.0.0.1:8080"
  1. Install latest version datahub mssql module
    pip install acryl-datahub[mssql]==0.8.40

  2. Add description to table or column in database

  3. Run command to ingest data
    datahub ingest -c ./<mssql yml name>.yml

  4. See error
    Table description error example
    ProgrammingError: (pyodbc.ProgrammingError) ('ODBC SQL type -150 is not yet supported. column-index=2 type=-150', 'HY106') (Background on this error at: http://sqlalche.me/e/13/f405)
    Column description error example
    ProgrammingError: (pyodbc.ProgrammingError) ('ODBC SQL type -150 is not yet supported. column-index=3 type=-150', 'HY106') (Background on this error at: http://sqlalche.me/e/13/f405)

Expected behavior
Pipeline finished successfully

Screenshots
Table description error
image

Column description error
image

Desktop (please complete the following information):

  • OS: [Windows, Ubuntu]
  • Browser [chrome]
  • Version [103.0.5]

DataHub libraries info:

  • DataHub CLI version [0.8.40]
  • Python version: [3.8.0]
  • SQLAlchemy [1.3.24]
  • pyodbc [4.0.32]
  • sqlalchemy-pytds [0.3.4]

Additional context
Quick solution proposal:

  • add flag include_column_description
  • add flag include_table_description
@alcoccoque alcoccoque added the bug Bug report label Jul 6, 2022
@maggiehays maggiehays added the ingestion PR or Issue related to the ingestion of metadata label Jul 6, 2022
@shirshanka shirshanka changed the title A short description of the bug mssql - error with database that has table or column description Jul 6, 2022
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

This issue is stale because it has been open for 15 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

@github-actions github-actions bot added the stale label Aug 2, 2022
@alcoccoque
Copy link
Contributor Author

DataHub libraries info:
DataHub CLI version [0.8.40]
DataHub CLI version [0.8.41]
DataHub CLI version [0.8.43]

Still not working on these versions

@github-actions github-actions bot removed the stale label Aug 30, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

@github-actions github-actions bot added the stale label Sep 30, 2022
@LavinaVRovine
Copy link
Contributor

This is still an issue in
DataHub Cli version [0.8.44]

@github-actions
Copy link

github-actions bot commented Nov 7, 2022

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

@github-actions github-actions bot added the stale label Nov 7, 2022
@LavinaVRovine
Copy link
Contributor

This is still an issue in
DataHub Cli version [0.8.44]

@LavinaVRovine
Copy link
Contributor

Hi,
@maggiehays I have a PR with a fix, however as a first-time contributor, I believe it needs a manual review, but nobody checked it out yet. Is there anything I can help or do to make it smoother? THanks

@github-actions github-actions bot removed the stale label Nov 12, 2022
@mayurinehate
Copy link
Collaborator

@hsheth2
Copy link
Collaborator

hsheth2 commented Dec 6, 2022

Now that #6134 is merged, I'm closing this issue. Thanks @LavinaVRovine!

@hsheth2 hsheth2 closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

No branches or pull requests

5 participants