Skip to content

Phonetic GREL function should raise an error  #3330

@wetneb

Description

@wetneb

The phonetic GREL function does not validate its second argument, the phonetic encoding, and silently falls back to metaphone.

For instance, "open refine".phonetic("metaphone3") evaluates to "APNRFN" and so does "open refine".phonetic(undefined_value) or "open refine".phonetic(null).

In these last two cases, we should instead throw an error, similar to the one we get with "open refine".phonetic("invalid_encoding") (Error: phonetic doesn't know how to handle the 'invalid encoding' encoding.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIndicates issues suitable for newcomers to design or coding, providing a gentle introduction.Type: BugIssues related to software defects or unexpected behavior, which require resolution.clusteringIssues related to the clustering operation, to merge similar values in a text columngrelThe default expression language, GREL, could be improved in many ways!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions