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

Auto-project not working as expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.2.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      Given the following code:

      r := record
        unsigned f1;
        STRING100 filler;
        unsigned f2;
        unsigned f3;
      end;
      
      ii := index(r,'i');
      
      d := DATASET(5, TRANSFORM({unsigned v}, SELF.v := COUNTER));
      
      d t(r ll, d rr) := TRANSFORM
        SELF.v := ll.f2;
      END;
      
      join(ii, d, LEFT.f1=RIGHT.v, T(LEFT, RIGHT));
      

      I would have expected the index read to be projected to only fetch the required fields (f1 and f2), but it seems to be bringing all of them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ghalliday Gavin Halliday
                Reporter:
                richardkchapman Richard Chapman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: