BigQuery custom functions
Writes and deploys BigQuery UDFs and remote functions in SQL, JavaScript or Python, with permissions handled.
Claude's review
8/10 Clear UDF type chooser with constraints, permissions and error handling rules for BigQuery.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Creates, deploys, and troubleshoots BigQuery User-Defined Functions (UDFs) and Remote Functions across SQL, JavaScript, Python, and Cloud Run endpoints. Use when writing custom scalar or aggregate functions in BigQuery, installing PyPI packages or Cloud Storage libraries in a Python or JavaScript UDF, or calling Google Cloud and external APIs from a Python UDF (WITH CONNECTION) or Remote Function. Don't use for standard BigQuery table/dataset CRUD (use bigquery-basics), DataFrames client workflows (use bigquery-bigframes), or BigQuery ML models (use bigquery-ai-ml).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: bigquery-udfs
metadata:
version: "1.0.2"
category: BigDataAndAnalytics
description: >-
Creates, deploys, and troubleshoots BigQuery User-Defined Functions (UDFs)
and Remote Functions across SQL, JavaScript, Python, and Cloud Run endpoints.
Use when writing custom scalar or aggregate functions in BigQuery, installing
PyPI packages or Cloud Storage libraries in a Python or JavaScript UDF, or
calling Google Cloud and external APIs from a Python UDF (WITH CONNECTION) or
Remote Function. Don't use for standard BigQuery table/dataset CRUD (use
bigquery-basics), DataFrames client workflows (use bigquery-bigframes), or
BigQuery ML models (use bigquery-ai-ml).
---
# BigQuery User-Defined Functions (UDFs)
BigQuery User-Defined Functions (UDFs) extend GoogleSQL with custom logic
written in SQL, JavaScript, managed Python (`python-3.11`), or hosted externally
as Remote Functions on Cloud Run and Cloud Run functions.
## Usage Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read and follow the instructions in
[Usage Attribution](references/attribution.md).
## Choosing the Right UDF Type
Always select the lightest-weight runtime that satisfies the requirement,
because BigQuery optimizes native SQL expressions inline while external runtimes
incur serialization and container startup overhead:
UDF Type | Connection Required? | When to Use | Key Constraints
:--------------------------------------------- | :------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :--------------
**SQL UDF** (Default) | No | Composable expressions, regex, struct/array manipulation, aggregate functions (`CREATE AGGREGATE FUNCTION`), or polymorphic `ANY TYPE` parameters. | Lowest latency; zero external dependencies; supports `TEMP` or persistent functions.
**JavaScript UDF** | No | Custom string/JSON logic or bundling `.js` libraries from Cloud Storage (`gs://`). | Runs in V8 sandbox; `INT64` unsupported as input (pass as `FLOAT64` or `STRING`). Max 32 KB inline code, 1 MB per external resource. Supports `TEMP` or persistent functions.
**Managed Python UDF (Offline)** | **No** | Pure compute using Python 3.11, PyPI wheels (`packages=[...]`), Cloud Storage `.py` modules (`library=[...]`), or vectorized Pandas/PyArrow batches. | Persistent functions only (`CREATE TEMP FUNCTION` unsupported). Outbound network blocked. Max container size: 4 vCPU / 16 GiB. `JSON`, `RANGE`, `INTERVAL`, `GEOGRAPHY` unsupported.
**Managed Python UDF (`WITH CONNECTION`)** | **Yes** (`CLOUD_RESOURCE`) | Invoking Google Cloud APIs (e.g., Cloud Translation, Gemini Enterprise Agent Platform) or online HTTP endpoints directly from Python inside BigQuery containers. | Requires `WITH CONNECTION`. Outbound traffic restricted to `restricted.googleapis.com` in VPC-SC perimeters (VPC networks unsupported). Max container size: 4 vCPU / 16 GiB.
...From google's repository, Apache-2.0 licence.
Related skills
-
Checked
Dashboard design
Designs clean, honest dashboards for web and SwiftUI with KPI cards, charts and layouts that work on phones.
7/101 credit -
Checked
User path analysis
Analyses event logs with Retentioneering to map user paths, funnels and churn, and shows where users drop off.
7/101 credit -
Checked
Geospatial SQL builder
Writes cost safe geospatial SQL for BigQuery, DuckDB, Snowflake and Postgres, with optional maps in Dekart.
7/101 credit -
Checked
Snowflake SQL and Cortex
Writes Snowflake SQL, Dynamic Tables, Streams, Cortex AI and Snowpark code while dodging common errors.
7/101 credit -
Checked
dbt platform migration
Moves a dbt project from one warehouse to another and fixes SQL dialect gaps, so your models build again.
7/101 credit -
Checked
CSV and Excel merging
Merges, stacks and dedupes CSV and Excel files into one clean table, then checks the row counts add up.
7/101 credit