Skip to content

InvalidQueryException: Failed to parse as type Long, Does the value need to match the Target type? #326

@Karthik-Rangasamy

Description

@Karthik-Rangasamy

Consider the query:

equal("id","1001")

Here id is of Long type
1001 is enclosed in quotes and considered a String

Getting the below error:
com.googlecode.cqengine.query.parser.common.InvalidQueryException: Failed to parse as type Long: "1001"

the below query works fine
equal("id",1001)

Is it the value given should always match the target type?
Is implicit conversion (String to Long) to target type supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions