예제 #1
0
파일: JdbcTests.java 프로젝트: tumen/presto
 @Test(groups = JDBC)
 @Requires(ImmutableNationTable.class)
 public void shouldExecuteQueryWithSelectedCatalogAndSchema() throws SQLException {
   connection.setCatalog("hive");
   connection.setSchema("default");
   try (Statement statement = connection.createStatement()) {
     QueryResult result = queryResult(statement, "select * from nation");
     assertThat(result).matches(PRESTO_NATION_RESULT);
   }
 }