private Object getCharValue(ResultSet resultSet, int columnIndex) throws SQLException {
    char charValue = 0;
    String columnValue = resultSet.getString(columnIndex);
    if (columnValue != null && columnValue.length() > 0) {
      charValue = columnValue.charAt(0);
    }
    return charValue;
  }
@throws SQLException if the column value get fails
geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/SqlToPdxInstance.java