OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Can't run snowflake ingestion. snowflake-sqlalchemy requires upgrade

Open stephanesol opened this issue 4 years ago • 2 comments

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.

Unable to run snowflake metadata ingestion after installing requirements.

image

To Reproduce

python3 -m venv env12.2.3
source env12.2.3/bin/activate
pip3 install --upgrade pip setuptools
pip3 install 'openmetadata-ingestion[elasticsearch]'==0.12.2.3
pip3 install "openmetadata-ingestion[snowflake]"==0.12.2.3
pip3 install "openmetadata-ingestion[snowflake-usage]"==0.12.2.3
./env12.2.3/bin/metadata ingest -c snowflake.yaml   

snowflake.yaml

source:
  type: snowflake
  serviceName: SNOWFLAKE
  serviceConnection:
    config:
      type: Snowflake
      username: ****
      password: ****
      warehouse: ****
      account: ****
      role: ****

  sourceConfig:
    config:
      type: DatabaseMetadata
      markDeletedTables: false
      markDeletedTablesFromFilterOnly: false
      includeTables: true
      includeViews: true
      includeTags: false
      databaseFilterPattern:
        includes:
          - DWH_PROD
      schemaFilterPattern:
        includes:
          - CANONICAL
      dbtConfigSource:
      # For cloud
        dbtCloudAuthToken: ****
        dbtCloudAccountId: ****
        dbtCloudProjectId: ****
        dbtUpdateDescriptions: true
sink:
  type: metadata-rest
  config: {}
workflowConfig:
  loggerLevel: DEBUG
  openMetadataServerConfig:
    hostPort: https://****/api
    enableVersionValidation: False
    authProvider: openmetadata
    securityConfig:
      jwtToken: '****'

Screenshots or steps to reproduce

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

Ingestion should complete without adding/updating packages via pip.

Version:

  • OS: macOS Monterey 12.5.1
  • Python version: 3.10.8
  • OpenMetadata version: 0.12.2.2
  • OpenMetadata Ingestion package version: 0.12.2.3

Additional context Add any other context about the problem here.

Here is the related issue in sql-alchemy https://github.com/snowflakedb/snowflake-sqlalchemy/issues/350

Work around is to perform pip install snowflake-sqlalchemy --upgrade but this can't be done in certain environments like managed Airflow.

image

stephanesol avatar Nov 08 '22 23:11 stephanesol

Thanks @stephanesol , building a 0.12.2.4 with this

pmbrull avatar Nov 09 '22 07:11 pmbrull

👋 release 0.12.2.4 solved this issue for us 🙇

stephanesol avatar Nov 09 '22 17:11 stephanesol