Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Don't throw ArgumentTypeException for null values, always #23

@iconara

Description

@iconara

The type checking required by JMESPath is not made for performance. Throwing ArgumentTypeException when a null value is passed to a function that expects a string, for example, is very expensive, when in most cases you expect the result to be null anyway. We implemented this in burtpath our ghetto-fork of jmespath.rb. Could we make something similar for jmespath-java? For example a flag to set to allow functions to be more lenient with null values. The burtpath implementation completely silenced errors when searching (but not when compiling), we might not want to be that extreme, I'm not sure.

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