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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.5.0
    • Fix Version/s: None
    • Component/s: Command Operations
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: