Skip to content

Pass in the type as a string #1851

@Fokko

Description

@Fokko

Feature Request / Improvement

Right now we expect to pass in the actual string:

schema = Schema(
    NestedField(1, 'foo', StringType())
)

I think it would be nice to also allow strings:

schema = Schema(
    NestedField(1, 'foo', 'string')
)

At the same time, we should reject complex types (list/map/struct).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions