aktonay/skillz / skills/cloud/bigquery-basics
bigquery-basics
VerifiedManages datasets, tables, and jobs in BigQuery, and integrates with BigQuery ML and Gemini for advanced data analytics and AI-driven insights. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources, or leverage BigQuery's built-in ML capabilities. Also use when performing data analysis, ingesting data into BigQuery, or developing AI applications on BigQuery.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.6 KB |
| references/cli-usage.md | markdown | 2.0 KB |
| references/client-library-usage.md | markdown | 2.2 KB |
| references/core-concepts.md | markdown | 3.4 KB |
| references/iac-usage.md | markdown | 1.7 KB |
| references/iam-security.md | markdown | 1.9 KB |
| references/mcp-usage.md | markdown | 2.3 KB |
references/client-library-usage.md
View on GitHub# BigQuery Client Libraries
Google Cloud client libraries provide an idiomatic way to interact with BigQuery
from your preferred programming language.
## Getting Started
To use the client libraries, ensure you have the Google Cloud SDK installed and
authenticated.
[Install Google Cloud SDK](https://cloud.google.com/sdk/docs/install)
### Python
- **Installation:**
```bash
pip install --upgrade google-cloud-bigquery
```
- **Usage Example:**
```python
from google.cloud import bigquery
client = bigquery.Client()
query_job = client.query("SELECT * FROM `project.dataset.table` LIMIT 10")
results = query_job.result()
```
- [Python Reference](https://docs.cloud.google.com/python/docs/reference/bigquery/latest)
### Java
- **Maven Dependency:**
```xml
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigquery</artifactId>
</dependency>
```
- **Usage Example:**
```java
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
QueryJobConfiguration queryConfig = QueryJobConfiguration.newBuilder(
"SELECT * FROM dataset.table").build();
TableResult results = bigquery.query(queryConfig);
```
- [Java Reference](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquery/latest/overview)
### Node.js (TypeScript)
- **Installation:**
```bash
npm install @google-cloud/bigquery
```
- **Usage Example:**
```typescript
import {BigQuery} from '@google-cloud/bigquery';
const bigquery = new BigQuery();
const [rows] = await bigquery.query('SELECT * FROM dataset.table');
```
- [Node.js Reference](https://googleapis.dev/nodejs/bigquery/latest/index.html)
### Go
- **Installation:**
```bash
go get cloud.google.com/go/bigquery
```
- **Usage Example:**
```go
ctx := context.Background()
client, _ := bigquery.NewClient(ctx, "project-id")
q := client.Query("SELECT * FROM dataset.table")
it, _ := q.Read(ctx)
```
- [Go Reference](https://docs.cloud.google.com/go/docs/reference/cloud.google.com/go/bigquery/latest)
## BigQuery DataFrames (BigFrames)
For Python users, `bigframes` provides a pandas-like API that executes directly
in BigQuery.
```bash
pip install --upgrade bigframes
```
- [BigFrames Guide](https://dataframes.bigquery.dev/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |