Skip to content

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

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?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions