Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9428

getResultsSizeAfterPartialList() return wrong count with distinct() for View Entity

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Here is the code sample to test the issue

      EntityListIterator productAssocListItr = null;
      productAssocListItr = from("ProductAndAssoc").distinct().queryIterator();
      productAssocListSize = productAssocListItr.getResultsSizeAfterPartialList();
      

      productAssocListSize will differ from the actual distinct records in the ProductAndAssoc View Entity.
      This issue exists because it gives distinct records on the basis of the first column in the table.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jleroux Jacques Le Roux
            Renuka_Srishti Renuka Srishti
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment