jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/JdbcMetastoreUtil.java
private static int resolveScaleOrPrecisionExpression(
      String type,
      Field field,
      String attributeName,
      String fieldPath
  ) throws JdbcStageCheckedException {
    String stringValue = field.getAttribute(attributeName);

    try {
      return Integer.parseInt(stringValue);
    } catch (NumberFormatException e) {
      throw new JdbcStageCheckedException(JdbcErrors.JDBC_304, type, fieldPath, attributeName, stringValue, e);
    }
  }
private static int resolveScaleOrPrecisionExpression(
      String type,
      Field field,
      String attributeName,
      String fieldPath
  ) throws JdbcStageCheckedException {
    String stringValue = field.getAttribute(attributeName);

    try {
      return Integer.parseInt(stringValue);
    } catch (NumberFormatException e) {
      throw new JdbcStageCheckedException(JdbcErrors.JDBC_304, type, fieldPath, attributeName, stringValue, e);
    }
  }
Evaluate precision or scale in context of record and given field path.