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

FileBatchSource should not always set the default schema as the output schema

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: Pipeline Plugins
    • Labels:
    • Release Notes:
      Fixed a bug that the file batch source always uses a default schema instead of the actual output schema.
    • Rank:
      1|i005u7:

      Description

      The FileBatchSource currently always set the default schema as the output schema. This is not always true since we can add a path field to the output schema. If the following plugin tries to get the input schema, this path field will be missing.
      To reproduce, use a file source and a run transform, specify path field in the file source and add it to the fields to process in the run transform. The pipeline will not get deployed and a RuntimeExeption is always thrown, saying this path field is missing from input schema.

        Attachments

          Activity

            People

            • Assignee:
              yaojie Yaojie Feng
              Reporter:
              yaojie Yaojie Feng
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: