protected String getMetaDataQuery(String sql) {
    return addLimitToQuery(sql, 1);
  }
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