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

Surface appropriate error messages in validator transform

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Rank:
      1|i00ks7:

      Description

      If there are any type mismatch in validator transform ex: integer field checked with double value the following error message is thrown. The transform should provide a user friendly error message instead

      2019-02-04 19:23:05,364 - WARN [Thread-909:o.a.h.m.LocalJobRunner@587] - job_local1474717450_0013

      java.lang.Exception: java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(int, int), (double, double)] of the method co.cask.hydrator.plugin.validator.CoreValidator.ValidatorUtil.minValue for argument types [java.lang.Double, java.lang.Integer]

        Attachments

          Activity

            People

            • Assignee:
              trishka Trishka
              Reporter:
              sree Sreevatsan Raman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: