cartridge-springdata icon indicating copy to clipboard operation
cartridge-springdata copied to clipboard

Partial key search error

Open ArtDu opened this issue 3 years ago • 1 comments

Partial search does not work with multipart index. Since null is serialized to box.NULL.

repro:

Optional<?> findResponse = repository.findById(
                ClientChannelId.builder()
                        .mdmId(1)
                        .build());

or

Optional<?> findResponse = repository.findById(
                ClientChannelId.builder()
                        .mdmId(1)
                        .channelType(null)
                        .build());
org.springframework.dao.DataRetrievalFailureException: InnerErrorMessage:
str: SelectError: Supplied key type of part 1 does not match index part type: expected string

ArtDu avatar Oct 27 '21 11:10 ArtDu