Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.2
-
None
Description
query.batchIterator() call always returns Object[] disregarding mapper set for the ColumnQuery causing ClassCastException
Query example:
void select() { // actual type of the iterator will be Object[] instead of DTO ResultBatchIterator<DTO> it = ObjectSelect.columnQuery(Entity.class, Entity.ATTRIBUTE1, Entity.ATTRIBUTE2) .map(this::toDto) .batchIterator(context, 100); } DTO toDto(Object[] data) { // ... }
Attachments
Issue Links
- is superceded by
-
CAY-2814 Select query iterator() and batchIterator() methods return incorrect results
- Closed