-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.5.0
-
Component/s: Command Operations
-
None
I'm using the following code to get distinct values of a specific type asynchronously:
collection.distinct("fieldName", SomeType.class).batchCursor(…)
The problem is that even though the result is declared as AsyncBatchCursor<SomeType> the actual values are of type String because the respective codec was never applied.
After debugging a lot I've figured out that DistinctOperation.asyncTransformer() doesn't use the supplied decoder at all.