Skip to content

Main

.com_kx_bq.run

Generic API to run any supported BigQuery method

Parameters:

Name Type Description
func symbol Name of the method to run in the format resource.method. See here for a list of resources and their methods. Note: The version does not need to be included in the resource, e.g datasets.list is valid, not v2.datasets.list.
args dict Dictionary of parameters for the request
body string json body for HTTP requests that require a body

Returns:

Type Description
dict Results from the request

Example: Running tables.list

 q).com_kx_bq.run[`tables.list;`projectId`datasetId!("cloudpak";"kx_bma_bigquery_ds");()]
 kind      | "bigquery#tableList"
 etag      | "XO0VOCRg48KNOqPXpRbrFw=="
 tables    | +`kind`id`tableReference`type`creationTime!(("bigquery#table";"bi..
 totalItems| 2f