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

SORT optimized away incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0, 5.6.4
    • Fix Version/s: 6.0.0
    • Component/s: Code Generator
    • Labels:
      None
    • Environment:
      ECL IDE by HPCC System.
      Version: community_5_4.2-1
      Server: interanl_5.6.2-1
      BOCA dataland2

      Description

      Run the following two cases. The results for the MaxIter0 are different and the only difference is that the case2 doesn't output the uu:
      Case 1:
      uu:=BIPV2_FindLinks.DotGetIterNum(); //W20160527-090901
      MaxIter0:=max(uu(reverse_seq=1),iterNumber);
      uu;
      MaxIter0; //print 3

      Case 2:
      uu:=BIPV2_FindLinks.DotGetIterNum(); //W20160527-091053
      MaxIter0:=max(uu(reverse_seq=1),iterNumber);
      //uu;
      MaxIter0;//print 0

        Attachments

          Activity

            People

            Assignee:
            ghalliday Gavin Halliday
            Reporter:
            hsun Hongzhi Sun (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: