You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thanks for report. Writing an object with a composite key with a UDT to Where failed because the writing code didn't use the proper method. Generally writing objects using composite keys with UDTs works. We need to fix the Where part.
…s with user-defined types.
We now correctly write properties from composite primary keys to the Where condition object. Previously, the object write used writeWhereFromObject(…) that isn't converter/UDT/tuple-type-aware.
Closes#1137.
…s with user-defined types.
We now correctly write properties from composite primary keys to the Where condition object. Previously, the object write used writeWhereFromObject(…) that isn't converter/UDT/tuple-type-aware.
Closes#1137.
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.
The text was updated successfully, but these errors were encountered: