collection.distinct().batchCursor() does not decode results

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.5.0
    • Component/s: Command Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Unassigned
              Reporter:
              Marc Knaup
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: