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

Assignment to all nested fields not counted as assignment to row

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      Here is some example code:

       

      r1 := RECORD
          unsigned v;
          boolean n;
      END;
      r2 := RECORD
          r1 myVal;
          r1 myVal2;
          unsigned extra;
      END;
      r3 := RECORD
          unsigned myVal;
          unsigned extra;
      END;
      d3 := DATASET('d3', r3, thor);r2 t(r3 l) := TRANSFORM
      //    SELF.myVal.v := 1;
      //    SELF.myVal.n := false;
          SELF.myVal := ROW(transform(r1, SELF.v := 1; SELF.n := false));
          SELF := l;
          SELF.myVal2 := SELF.myVal;
      END;
      p := PROJECT(d3, t(LEFT)); 
      output(p);
      
      

      If the commented lines are uncommented, and the next line commented then eclcc reports two different errors.  The code should really be treated identically.

       

       

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: