Open Blackbaud-JasonBodnar opened 22 hours ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar @pjohari-ms @TheovanKraay.
@trande4884 can you please take a look at this issue, thanks!
@Blackbaud-JasonBodnar I am able to reproduce the issue, let me see what's going on and I will get back to you.
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Container(containerName = TranslationRequestEntity.COLLECTION_NAME)
public class TranslationRequestEntity implements Persistable<String> {
public static final String COLLECTION_NAME = "translation_requests";
public static int CURRENT_SCHEMA_VERSION = 1;
@Id
@GeneratedValue
private String id;
@Version
private String version;
@Builder.Default
private int schemaVersion = CURRENT_SCHEMA_VERSION;
private Long totalCharacters;
private OffsetDateTime datetime;
@Override
public boolean isNew() {
return id == null;
}
}
Describe the bug When executing a Cosmos NoSQL query with SUM() using a Spring Data repository a List is returned instead of an int or long
Exception or Stack Trace
To Reproduce Create a repository with a method that has a query that uses SUM()
Code Snippet
Expected behavior There should be no exception and a Long (or Long or Integer or int) should be returned. It works with
COUNT()
:Setup (please complete the following information):
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report