Skip to content

Failed to convert single character to Enum using parser #998

Open
@hantsy

Description

@hantsy

After upgrading to v0.15, a new issue occurred in our application.

There is a column that accepts a single character in the CSV, and we use the following parser to convert it to Enum from a raw string directly.

df.
...
.convertTo<xxx>{
    parser { ACHType.fromSymbol(it) }
}

which worked well with the former version, but failed now with the following information.

Type converter from kotlin.Char to xxx.ACHType? is not found for column 'ACH Type'

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