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

Superset data models with array columns fail #13891

Open
joegoldbeck opened this issue Nov 7, 2023 · 3 comments · May be fixed by #19312
Open

Superset data models with array columns fail #13891

joegoldbeck opened this issue Nov 7, 2023 · 3 comments · May be fixed by #19312
Assignees

Comments

@joegoldbeck
Copy link
Contributor

Affected module
Ingestion

Describe the bug
Superset data models referencing Snowflake tables with ARRAY columns fail to ingest, raising an error

metadata.Ingestion [metadata_rest.py:147] Failed to ingest CreateDashboardDataModelRequest [9] due to api request failure: For column data type array, arrayDataType must not be null

To Reproduce

  1. create a snowflake table with a column with ARRAY datatype
  2. create a superset data model for this table
  3. create a chart that uses this data model
  4. create a dashboard that uses this chart
  5. run a superset ingest

Expected behavior

Ingestion should proceed successfully. Arrays should either not require column data types, or the correct type should be inferred from the data source.

In Snowflake, ARRAY columns always contain VARIANT items https://docs.snowflake.com/en/sql-reference/data-types-semistructured#characteristics-of-an-array

Version:

  • Python version: 3.9.17
  • OpenMetadata version: 1.1.5 (also in 1.1.7)
  • OpenMetadata Ingestion package version: openmetadata-ingestion==1.1.5

Additional context

Each value in an ARRAY is of type VARIANT

https://docs.snowflake.com/en/sql-reference/data-types-semistructured#characteristics-of-an-array

@monika393
Copy link

Hey i am having same issue while creating table using OM API. Did you receive any help on above?

@harshach harshach moved this to Ingestion - Bugs & Minor Features in Release 1.7.0 Dec 12, 2024
@akashverma0786
Copy link
Contributor

Hi , I am contributing to this issue.

@harshach
Copy link
Collaborator

harshach commented Jan 9, 2025

@akashverma0786 assigned to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Integration
Development

Successfully merging a pull request may close this issue.

6 participants