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

Bad error message in SetCharset directive

    Details

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

      Description

      The set-charset directive is meant to be used to transform bytes to a string. If you try to use it on a string field, you get this error message:

      co.cask.directives.language.SetCharset@781ecbac : Invalid type 'java.lang.String' of column 'body'. Should be of type String.
      

      This should be something more like:

      Error executing 'set-charset': The 'body' column was expected to be a byte array or ByteBuffer, but is of type 'String'. 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vinisha Vinisha Shah
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: