File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
csharp/src/Drivers/BigQuery Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ private async Task<QueryResult> ExecuteQueryInternalAsync()
118118 {
119119 // if the authentication token was reset, then we need a new job with the latest token
120120 BigQueryJob completedJob = await Client . GetJobAsync ( jobReference ) ;
121- return await completedJob . GetQueryResultsAsync ( ) ;
121+ return await completedJob . GetQueryResultsAsync ( getQueryResultsOptions ) ;
122122 } ;
123123
124124 BigQueryResults results = await ExecuteWithRetriesAsync ( getJobResults ) ;
@@ -130,8 +130,8 @@ private async Task<QueryResult> ExecuteQueryInternalAsync()
130130 clientMgr . UpdateCredential ( Credential ) ;
131131 } ) ;
132132
133- // For multi-statement queries, the results.TableReference is null
134- if ( results . TableReference == null )
133+ // For multi-statement queries, StatementType == "SCRIPT"
134+ if ( results . TableReference == null || job . Statistics . Query . StatementType . Equals ( "SCRIPT" , StringComparison . OrdinalIgnoreCase ) )
135135 {
136136 string statementType = string . Empty ;
137137 if ( Options ? . TryGetValue ( BigQueryParameters . StatementType , out string ? statementTypeString ) == true )
You can’t perform that action at this time.
0 commit comments