Skip to content

Cannot write composite key that contains a UDT to Where #1137

Closed
@samueldlightfoot

Description

@samueldlightfoot

When trying to create a query in which the primary key is a composite consisting of a UDT and other fields (i.e. not just a UDT) an error is thrown during the WHERE statement generation.

The issue is 'Cannot resolve DataType for com.datastax.oss.driver.api.core.data.UdtValue'.

I have replicated this in the MappingCassandraConverterUDTUnitTests::shouldWriteUdtWhereWherePrimaryKeyWithCustomConversions test by modiying the Money class to contain a composite primary key (Currency plus another String property as key) rather than just the Currency UDT.

See failing test changes here: samueldlightfoot@b68892e

Issue tested on version 3.3.0 and 3.1.8.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions