Skip to content

Parquet large_string not supported while importing schema from parquet datasource #1022

@mayurbarge

Description

@mayurbarge

Hello,

I tried to generate data contract from one GCS source file.

datacontract import --format parquet --source 'gs://some-server/news.parquet'

I get following error.

                                                                                                        │
│                                                                                                                                                    │
│   88 │   if pyarrow.types.is_list(pyarrow_field.type):                                                                                             │
│   89 │   │   return create_property(name=field_name, logical_type="array", physical_type="LIS                                                      │
│   90 │                                                                                                                                             │
│ ❱ 91 │   raise DataContractException(                                                                                                              │
│   92 │   │   type="schema",                                                                                                                        │
│   93 │   │   name="Parse parquet schema",                                                                                                          │
│   94 │   │   reason=f"{pyarrow_field.type} currently not supported.",                                                                              │
│                                                                                                                                                    │
│ ╭───────────────────────── locals ─────────────────────────╮                                                                                       │
│ │    field_name = 'url'                            │                                                                                       │
│ │ pyarrow_field = pyarrow.Field<url: large_string> │                                                                                       │
│ ╰──────────────────────────────────────────────────────────╯                                                                                       │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
DataContractException: Run operation failed: [schema] Parse parquet schema - None - ResultEnum.failed - large_string currently not supported. -
datacontract

Seems the tool is not supporting all Parqet types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions