Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2672

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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.0
    • Component/s: Command Operations
    • Labels:
      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 Unassigned
            Reporter:
            fluidsonic Marc Knaup
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: