Skip to content

Unhandled error when querying set by primitive value #2238

@vkarpov15

Description

@vkarpov15

Create the following table with a luckyNumbers field that's a set of doubles

{
    "createTable": {
        "name": "table1",
        "definition": {
            "primaryKey": "_id",
            "columns": {
                "_id": {
                    "type": "text"
                },
                "name": {
                    "type": "text"
                },
                "tags": {
                    "type": "set",
                    "valueType": "text"
                },
                "luckyNumbers": {
                    "type": "set",
                    "valueType": "double"
                }
            }
        },
        "options": {}
    }
}

Filter without any operators:

{
    "findOne": {
        "filter": {
            "luckyNumbers": 1
        },
        "options": {}
    }
}

The result is the following error:

HTTP error (500): {"errors":[{"message":"Server failed: root cause: (java.util.NoSuchElementException) No value present","errorCode":"SERVER_UNHANDLED_ERROR","id":"1ab5bae3-b396-4338-ad7e-b787fa245771","family":"SERVER","title":"Server failed","scope":"EMPTY"}]}

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