public QueryHandle getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
throws ExploreException, SQLException {
String body = GSON.toJson(new ColumnsArgs(catalog, schemaPattern,
tableNamePattern, columnNamePattern));
HttpResponse response = doPost("data/explore/jdbc/columns", body, null);
if (HttpResponseStatus.OK.getCode() == response.getResponseCode()) {
return QueryHandle.fromId(parseResponseAsMap(response, "handle"));
}
throw new ExploreException("Cannot get the columns. Reason: " + getDetails(response));
}