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

Remove usage of toString() in directive error messages.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1.0
    • Component/s: Data Prep
    • Labels:
    • Rank:
      1|i00hxj:

      Description

      Data prep uses `toString()` in `DirectiveExecutionException` in many directives such as `parse-as-avro`, `column-replace` etc. As a consequence, on UI, error message has classname and object hash in it. For example, for `parse-as-avro` directive the error message looks something like:

      co.cask.directives.parser.ParseAvroFile@77c46696 : column name should be of type byte array avro file. 

       

      Instead it should be something as below:

      Invalid data : column name should be of type byte array avro file. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vinisha Vinisha Shah
                Reporter:
                vinisha Vinisha Shah
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: