Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-24402

sorting from a SET does not work on platform 7+

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 7.2.0, 7.6.44
    • Fix Version/s: 7.6.58
    • Component/s: None
    • Labels:
      None

      Description

      Sorting from an input ECL SET is not working on servers running platform 7.6+

      Background – ESP wanted us to use an input SET / Dataset to capture the user’s sort selection

      Here is the sample code which replicates the platform issue –

      EXPORT BatchService() := FUNCTION
      
         set of unsigned1 user_selection := [] : stored('numbers_to_sort_on');
         
         ds := DATASET([5,66,8,8,54,73,1,38,6,6], {unsigned1 n});
         
         sortOnSelection(unsigned1 i) :=  i in user_selection;
         
         ds_sorted := SORT(ds, -sortOnSelection(n));
         
         RETURN output(ds_sorted,named('result'));
      
      END;
      

      If you deploy / publish the above code as a new query and try entering a number to sort from on the input you will see it only sorts on platform version 6+.

      This issue is happening on our only 100 way box which is on platform version 7.6.44-1) and not on our other ones which are on 6.4.28-1
      My local compiler version does not matter (I had the issue with both 6+ and 7+ compiler versions)

      Enter a number from the DS above (8) for ex, and the eight’s should then get sorted to the top like THIS.

      As you can see, the issue is only on the box running platform 7+ and not on the one running 6+

      This bug needs to be fixed before we upgrade our cert and prod servers to 7+.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ghalliday Gavin Halliday
                Reporter:
                dabittan Dan Abittan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: