eschatus / starschema-bigquery-jdbc

Automatically exported from code.google.com/p/starschema-bigquery-jdbc
0 stars 0 forks source link

Get Dataset name through Google BigQuery Connection #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I create jdbc connection for google BigQuery as follwing

Class.forName("net.starschema.clouddb.jdbc.BQDriver");
conn = 
DriverManager.getConnection("jdbc:BQDriver:"projectID"?transformQuery=true&user=
"client ID"&password="client secret");

then i get catalog name as follow

ResultSet m_resultSet = conn.getMetaData().getCatalogs();
while (m_resultSet.next())
{
    System.out.println(m_resultSet.getString(4));
}

But now i am trying to get datasets name. it returns null.

Can i get dataset name of publicdata ?? and How??

Thanks

Original issue reported on code.google.com by singhbra...@gmail.com on 4 Jun 2014 at 1:20