@Override
  public List<String> getColumnNames(Configuration conf) throws HiveJdbcDatabaseAccessException {
    return getColumnMetadata(conf, ResultSetMetaData::getColumnName);
  }
A data accessor that should in theory work with all JDBC compliant database drivers.
jdbc-handler/src/main/java/org/apache/hive/storage/jdbc/dao/GenericJdbcDatabaseAccessor.java