Endpoint Get Query Schema (From SQL)
Name
get_query_schema
Description
Runs a BigQuery SQL query synchronously and returns query schema [API reference]
Parameters
Parameter | Required | Options | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name:
Label: SQL Query |
YES | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name:
Label: Filter |
YES | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name:
Label: Use Legacy SQL Syntax? |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name:
Label: timeout (Milliseconds) Wait until timeout is reached. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name:
Label: Job Location The geographic location where the job should run. For Non-EU and Non-US datacenters we suggest you to supply this parameter to avoid any error. |
|
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
name |
DT_WSTR
|
nvarchar(255)
|
255 | |
type |
DT_WSTR
|
nvarchar(255)
|
255 |
If the column you are looking for is missing, consider customizing Google BigQuery Connector.
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Google BigQuery Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
API Source - Google BigQuery
Read / write Google BigQuery data inside your app without coding using easy to use high performance API Connector
Google BigQuery
Get Query Schema (From SQL)
Required Parameters | |
---|---|
SQL Query | Fill-in the parameter... |
Filter | Fill-in the parameter... |
Optional Parameters | |
Use Legacy SQL Syntax? | false |
timeout (Milliseconds) | 90000 |
Job Location |

API Destination
API Destination - Google BigQuery
Read / write Google BigQuery data inside your app without coding using easy to use high performance API Connector
Google BigQuery
Get Query Schema (From SQL)
Required Parameters | |
---|---|
SQL Query | Fill-in the parameter... |
Filter | Fill-in the parameter... |
Optional Parameters | |
Use Legacy SQL Syntax? | false |
timeout (Milliseconds) | 90000 |
Job Location |

ODBC application
Use these SQL queries in your ODBC application data source:
Get query schema
SELECT * FROM get_query_schema
WITH
(
"Sql" = 'SELECT title,id,language,wp_namespace,reversion_id ,comment,num_characters FROM bigquery-public-data.samples.wikipedia LIMIT 1000',
"Filter" = '$.schema.fields[*]'
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get query schema
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_query_schema
WITH
(
"Sql" = ''SELECT title,id,language,wp_namespace,reversion_id ,comment,num_characters FROM bigquery-public-data.samples.wikipedia LIMIT 1000'',
"Filter" = ''$.schema.fields[*]''
)';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_BIGQUERY_IN_GATEWAY];