stargate / data-api

JSON document API for Apache Cassandra (formerly known as JSON API)
https://stargate.io
Apache License 2.0
14 stars 16 forks source link

API commands against table with unsupported data type generate SERVER_UNHANDLED_ERROR #1730

Open Yuqi-Du opened 1 week ago

Yuqi-Du commented 1 week ago

https://github.com/stargate/data-api/blob/main/src/main/java/io/stargate/sgv2/jsonapi/service/schema/tables/UnsupportedApiDataType.java#L11

E.G. CountCommands against a table with frozen datatype, errors out.

{
    "errors": [
        {
            "message": "Server failed: root cause: (java.lang.UnsupportedOperationException) UnsupportedCqlApiDataType does not have a name",
            "errorCode": "SERVER_UNHANDLED_ERROR",
            "id": "f03bb89c-1db5-407d-890d-e0c38290ef39",
            "title": "Server failed",
            "family": "SERVER",
            "scope": "DATABASE"
        }
    ]
}