Skip to content

Instantly share code, notes, and snippets.

@meatcar
Last active August 29, 2015 14:14
Show Gist options
  • Save meatcar/5f0b97983738f38e7cbf to your computer and use it in GitHub Desktop.
Save meatcar/5f0b97983738f38e7cbf to your computer and use it in GitHub Desktop.
public class DrillJDBCTestTrial {
public static void main(String[] args) throws SQLException, ClassNotFoundException {
Class.forName("org.apache.drill.jdbc.Driver");
Connection connection = DriverManager.getConnection("jdbc:drill:zk=local");
String query = "select N_NAME from dfs.`/home/meatcar/dev/drill/apache-drill-0.7.0/sample-data/nation.parquet`";
PreparedStatement statement = connection.prepareStatement(query);
// hangs here
ResultSet rs = statement.executeQuery();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment