Skip to content

DataType.of should be non case sensitive #145

Closed

Description

@rnett

Currently DataType.of only accepts uppercase names like FLOAT32. Anyone used to using python will expect float32 and similar lowercase names to work. It seems like it may have been a design decision by it's inclusion in the docs, but I don't see a reason not to add it (probably as a toUppercase on the arg rather than extra cases) and I expect almost everyone will run into this at some point.

Activity

  1. rnett commented on Nov 13, 2020

    @rnett
    ContributorAuthor

    This will likely be fixed by #139 if DataType gets converted to an enum.

  2. karllessard commented on Nov 14, 2020

    @karllessard
    Collaborator

    Hi @rnett , I was about to say so, SIG JVM have agreed to go forward with #139, which leverages even more Java idiomatic type features in preference to a custom or pythonic type system.

    I suggest we close this issue so that you can continue to provide your valuable feedbacks on the next PRs to come that will be related to this

  3. rnett commented on Nov 14, 2020

    @rnett
    ContributorAuthor

    Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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