public static Timestamp convertStringToTimestamp(String timestamp) {
    Instant instant = Instant.from(TIMESTAMP_FORMATTER.parse(timestamp));
    return Timestamp.from(instant);
  }
Converts timestamp string format to java.sql.Timestamp.
@param timestamp Timestamp in string format.
@return java.sql.Timestamp object.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java