Commit 20bd377
fix: use Integer.class for SELECT VALUE COUNT aggregate serializer test
SELECT VALUE COUNT(1) returns a scalar integer, so use Integer.class
instead of ObjectNode.class as the result type. ObjectNode.class fails
because ValueUnwrapCosmosItemSerializer extracts the _value field and
cannot convert the resulting integer to ObjectNode.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5b407c8 commit 20bd377
File tree
1 file changed
+4
-2
lines changed- sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
| 767 | + | |
767 | 768 | | |
768 | 769 | | |
769 | 770 | | |
770 | | - | |
| 771 | + | |
771 | 772 | | |
772 | 773 | | |
773 | 774 | | |
774 | | - | |
| 775 | + | |
775 | 776 | | |
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
| 780 | + | |
779 | 781 | | |
780 | 782 | | |
781 | 783 | | |
| |||
0 commit comments