open-metadata / OpenMetadata

OpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
https://open-metadata.org
Apache License 2.0
5.55k stars 1.05k forks source link

Iceberg Connector Ingestion Issue with pydantic V2 #18012

Closed Prajwal214 closed 1 month ago

Prajwal214 commented 1 month ago

Affected module Does it impact the UI, backend or Ingestion Framework? -- Ingestion Framework

Describe the bug A clear and concise description of what the bug is. -- While running Metadata Ingestion using Iceberg connector using Rest Catalog , we are getting below error in the logs.

pyiceberg==0.7.1

in <module>
    from pyiceberg.catalog.glue import GlueCatalog
  File "/home/airflow/.local/lib/python3.10/site-packages/pyiceberg/catalog/glue.py", line 31, in <module>
    from mypy_boto3_glue.client import GlueClient
ModuleNotFoundError: No module named 'mypy_boto3_glue'

pyiceberg==0.5.1

[2024-09-26 12:24:33] INFO     {metadata.OMetaAPI:server_mixin:74} - OpenMetadata client running with Server version [1.5.5] and Client version [1.5.5.0]
[2024-09-26 12:24:33] ERROR    {metadata.Utils:logger:178} - 
Error initializing metadata: 'pydantic_core._pydantic_core.Url' object has no attribute 'endswith'

To Reproduce

image

While running Metadata Ingestion we can replicate the issue

Expected behavior A clear and concise description of what you expected to happen.

Version:

Additional context Add any other context about the problem here.

Prajwal214 commented 1 month ago

Closing by #18016