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

Record translation doesn't spot a clash between a named source field and a target that's a nested record

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.12.0, 7.10.20, 7.8.48
    • Component/s: eclrtl
    • Labels:
      None

      Description

      e.g. if src is:
      srcRec := RECORD
      DATASET(childrec) kids;
      END;

      and destination is:
      dstRec := RECORD
      childrec kids;
      END;

      This should be an error, but instead the target fields are filled by defaults, and the source is dropped.

      Whenever the target is a nested record like this, and the source isn't, it should be an error.
      Q: what about the case where the source contains all the fields (or some) of the nested record?

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: