File tree Expand file tree Collapse file tree
java-bigquery/google-cloud-bigquery-jdbc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ target-it/**
55** /BigQueryStatementE2EBenchmark.java
66
77tools /** /* .class
8+ tools /** /drivers /**
9+ tools /** /logs /**
810tools /** /* .jfr
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ DRIVER_CLASS = com.google.cloud.bigquery.jdbc.BigQueryDriver
2121URL ?= jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;
2222CREDENTIALS ?= $(GOOGLE_APPLICATION_CREDENTIALS )
2323
24+ # Default connection parameters
25+ PARAMS = ProjectId=bigquery-devtools-drivers;OAuthType=0;OAuthServiceAcctEmail=;OAuthPvtKeyPath=$(CREDENTIALS ) ;
26+
27+ # Additional connection parameters
28+ EXTRA_PARAMS ?=
29+
2430ROWS ?= 10
2531COLS ?= 5
2632METHOD ?= getTables
4248 JFR_FLAGS =
4349endif
4450
45- COMMON_FLAGS = --url "$(URL ) " \
51+ COMMON_FLAGS = --url "$(URL ) ; $( DEFAULT_PARAMS ) ; $( PARAMS ) ; $( EXTRA_PARAMS ) " \
4652 --driver-jar "$(DRIVER_JAR ) " \
47- --driver-class "$(DRIVER_CLASS ) " \
48- --ProjectId "bigquery-devtools-drivers" \
49- --OAuthType=0 \
50- --OAuthServiceAcctEmail="" \
51- --OAuthPvtKeyPath="$(CREDENTIALS ) " \
52- --EnableHighThroughputAPI=1 \
53- --HighThroughputActivationRatio=0 \
54- --HighThroughputMinTableSize=0 \
55- --MaxResults=20000 \
56- --EnableSession=1
53+ --driver-class "$(DRIVER_CLASS ) "
5754
5855query : classes
5956 $(J ) $(JFR_FLAGS ) -cp .:$(DRIVER_JAR ) JDBCClient --action query $(COMMON_FLAGS ) --query " $( QUERY) " $(OUTPUT_FLAG ) $(EXTRA_ARGS )
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ The Makefile provides convenient targets to run the client. You can override def
1919Common variables:
2020- ` URL ` : JDBC connection URL (defaults to public BigQuery endpoint)
2121- ` CREDENTIALS ` : Path to service account JSON key (defaults to ` $GOOGLE_APPLICATION_CREDENTIALS ` )
22+ - ` PARAMS ` : Default set of connection string params.
23+ - ` EXTRA_PARAMS ` : Additional connection string parameters (e.g., ` EXTRA_PARAMS="Timeout=30;LogLevel=6;" ` )
2224- ` OUTPUT ` : Set to ` false ` to suppress query result output (defaults to ` true ` )
2325- ` EXTRA_ARGS ` : Extra arguments to pass to the client (e.g., ` EXTRA_ARGS="--table my_table" ` )
2426
You can’t perform that action at this time.
0 commit comments