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

Javascript transform should handle bad schemas better

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Pipeline Plugins, Pipelines
    • Labels:
    • Rank:
      1|hzzrm7:

      Description

      If the pipeline creator for a Javascript transform gives an output schema that doesn't match what their script implements, it results in a cryptic error message and stack trace. For example, is a non-nullable field is assigned null, you get a NullPointerException, with no indication of the problematic field and type and value. Similarly, a bad type results in a cast exception with no indication of the field and type and value.

      Instead, the plugin should catch these exceptions and throw ones with more descriptive messages.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: