Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11022

StructuredRecord that is passed to Transform should be mutable

    Details

    • Rank:
      1|hzzphj:

      Description

      If a Java transform wants to simply mutate one of the fields of the object being transformed, it currently requires quite a few lines of code, because a StructuredRecord.Builder has to be created with the input schema. Then, all of the input fields have to be copied over, and then the builder's field can be mutated.
      If the object being transformed was mutable, it would greatly simplify the transform code.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ali.anwar Ali Anwar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: