@@ -348,6 +348,26 @@ public void testSnowflake() throws Exception {
348
348
propValues = buildPropValues (requiredProps );
349
349
testUrlString (url , propValues , "jdbc:snowflake://" + HOST + "/" );
350
350
}
351
+
352
+ public void testBigQuery () throws Exception {
353
+ ArrayList <String > supportedProps = new ArrayList <>();
354
+ supportedProps .add (JdbcUrl .TOKEN_HOST );
355
+ supportedProps .add (JdbcUrl .TOKEN_PORT );
356
+ supportedProps .add (JdbcUrl .TOKEN_INSTANCE );
357
+ supportedProps .add (JdbcUrl .TOKEN_ADDITIONAL );
358
+ ArrayList <String > requiredProps = new ArrayList <>();
359
+ requiredProps .add (JdbcUrl .TOKEN_HOST );
360
+ requiredProps .add (JdbcUrl .TOKEN_PORT );
361
+ requiredProps .add (JdbcUrl .TOKEN_INSTANCE );
362
+ requiredProps .add (JdbcUrl .TOKEN_ADDITIONAL );
363
+ JdbcUrl url = checkUrl ("Google BigQuery" , null , "com.simba.googlebigquery.jdbc.Driver" ,
364
+ "jdbc:bigquery://https://<HOST>/bigquery/v2:<PORT>;ProjectId=<INSTANCE>;<ADDITIONAL>" ,
365
+ supportedProps , requiredProps );
366
+ HashMap <String , String > propValues = buildPropValues (supportedProps );
367
+ testUrlString (url , propValues , "jdbc:bigquery://https://" + HOST + "/bigquery/v2:" + PORT + ";ProjectId=" + INSTANCE + ";" + ADDITIONAL );
368
+ propValues = buildPropValues (requiredProps );
369
+ testUrlString (url , propValues , "jdbc:bigquery://https://" + HOST + "/bigquery/v2:" + PORT + ";ProjectId=" + INSTANCE + ";" + ADDITIONAL );
370
+ }
351
371
352
372
enum DB2Types { DB2 , IDS , CLOUDSCAPE };
353
373
0 commit comments