Skip to content

java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.Comparable #10530

@riverlover

Description

@riverlover

Title: IN :keys queries fail in current version 3.2.43 (worked in 3.0.37)

Description:
Queries like the following now throw an error, but worked correctly in version 3.0.37:

val fieldExpr = fields.mkString("[", ",", "]")
val params = Map("keys" -> keys.map(_.asJava).asJava)
val query = s"SELECT FROM $clazz WHERE $fieldExpr IN :keys"

For example, a query like this:

SELECT FROM INDEX:id_version_index
WHERE key IN [
['5050_globalData', 40L],
['5050_b26b694f-2957-567b-bf6d-e5aaa0e85cb6', 133L]
]

fails in the current version.

It seems the handling of IN :keys or nested list parameters may have changed. Could you clarify if this is a known issue or provide guidance on how to achieve the same query in the current version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglegacy not used anymore

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions