Last active
August 29, 2015 14:14
-
-
Save meatcar/5f0b97983738f38e7cbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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