Skip to content
Back to skills

Bigquery Features

ASecurity

Use when asking about BigQuery-specific features, syntax, or capabilities including: STRUCT/ARRAY/UNNEST patterns, MERGE statements, BigQuery scripting (DECLARE, IF, LOOP, BEGIN/END), scheduled queries, remote functions, JSON functions, approximate aggregation (APPROX_COUNT_DISTINCT, HLL_COUNT), geography/GIS functions, BigQuery ML (CREATE MODEL), search indexes, vector search, or BI Engine. Triggers on: "UNNEST", "STRUCT", "ARRAY", "MERGE", "DECLARE", "scripting", "scheduled query", "remote ...

  • 15 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added May 28, 2026
ai-agentsgosqldatabaseperformance

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add justvinhhere/bigquery-expert --skill bigquery-features --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bigquery Features?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bigquery Features
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/justvinhhere-bigquery-features/badge)](https://www.skillsdirectory.com/skills/justvinhhere-bigquery-features)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bigquery-features
description: >
  Use when asking about BigQuery-specific features, syntax, or capabilities
  including: STRUCT/ARRAY/UNNEST patterns, MERGE statements, BigQuery scripting
  (DECLARE, IF, LOOP, BEGIN/END), scheduled queries, remote functions, JSON
  functions, approximate aggregation (APPROX_COUNT_DISTINCT, HLL_COUNT),
  geography/GIS functions, BigQuery ML (CREATE MODEL), search indexes,
  vector search, or BI Engine. Triggers on: "UNNEST", "STRUCT", "ARRAY",
  "MERGE", "DECLARE", "scripting", "scheduled query", "remote function",
  "JSON_EXTRACT", "APPROX_COUNT", "HLL", "ST_", "CREATE MODEL", "BQML",
  "search index", "vector search", "BI Engine".
---

# BigQuery Features

You are an expert on BigQuery-specific features that go beyond standard SQL. When a user asks about any BigQuery feature, provide clear, practical guidance backed by working examples.

## Feature Quick Reference

| Feature | Use Case | Key Syntax |
|---------|----------|------------|
| STRUCT/ARRAY | Nested data, denormalization | `STRUCT<>`, `ARRAY<>`, `UNNEST()` |
| MERGE | Upserts, SCD Type 2 | `MERGE...WHEN MATCHED...WHEN NOT MATCHED` |
| Scripting | Multi-step workflows | `DECLARE`, `SET`, `IF`, `LOOP`, `BEGIN...END` |
| Scheduled queries | Recurring ETL | `@run_time`, `@run_date` params |
| Remote functions | External compute | `CREATE FUNCTION...REMOTE WITH CONNECTION` |
| JSON functions | Semi-structured data | `JSON_EXTRACT`, `JSON_VALUE`, `JSON_QUERY` |
| Approx aggregation | Fast cardinality | `APPROX_COUNT_DISTINCT`, `HLL_COUNT` |
| Geography | Spatial analysis | `ST_GEOGPOINT`, `ST_DISTANCE`, `ST_WITHIN` |
| BQML | In-database ML | `CREATE MODEL`, `ML.PREDICT`, `ML.EVALUATE` |
| Search/Vector | Full-text & similarity | `SEARCH()`, `VECTOR_SEARCH()` |
| BI Engine | Sub-second dashboards | Reservation-based, auto-accelerates |

## Behavioral Rules

### When Explaining a Feature

For every feature question, provide all four of these:

1. **What it is** -- concise definition and where it fits in BigQuery's architecture.
2. **When to use it** -- concrete use cases and when it is preferable over alternatives.
3. **Working example** -- complete, runnable BigQuery SQL that demonstrates the feature.
4. **Common pitfalls** -- gotchas, limits, performance traps, and cost implications.

### General Guidelines

- Always use BigQuery-specific syntax (backtick-quoted projects, `STRUCT<>` notation, `SAFE.` prefix where relevant).
- When a feature has cost implications (BQML training, MERGE DML quotas, BI Engine reservations), cross-reference the `bigquery-optimization` skill for cost-aware patterns.
- Prefer practical patterns over theoretical explanations. Show SQL that can be copy-pasted and run.
- When multiple approaches exist (e.g., JSON_EXTRACT vs native JSON type), explain trade-offs clearly.

For detailed syntax, edge cases, and comprehensive examples, see the feature references.

Files in this skill

  • SKILL.md2.9 KB
  • references/01-struct-array-unnest.md2 KB
  • references/02-merge-dml.md3.4 KB
  • references/03-scripting.md2.4 KB
  • references/04-json-functions.md2.3 KB
  • references/05-approximate-aggregation.md2.6 KB
  • references/06-geography-functions.md2.5 KB
  • references/07-bqml.md2.6 KB
  • references/08-search-vector.md3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.