Closed soheilrahsaz closed 5 months ago
Care to provide the Table and UDT CQL definitions so we have a complete reproducer?
Sure, I used spring.cassandra.schema-action=create_if_not_exists
to create the schemas:
CREATE KEYSPACE spring_cassandra WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}
AND durable_writes = true;
CREATE TYPE spring_cassandra.speciality (
name text
);
CREATE TABLE spring_cassandra.vet (
id uuid PRIMARY KEY,
firstname text,
lastname text,
specialities set<frozen<speciality>>
)
Thanks a lot. We were missing collection introspection of elements if the element type wasn't sufficient. That's fixed now.
Hi I have test application working with Cassandra repositories. When I try to write a custom query and a partial update on a column which it's type is a collection of UDT, I get this error:
Here is my entity:
But if i dont put
Speciality
in a collection and update it using the same way, there is no problem.Tested with spring boot 3.2.0 and spring-data-cassandra 4.2.0