All skills
google avatar

/bigquery-basics

@becc4b8
by googlegoogle/skills21k stars
1,698

Manages datasets, tables, and jobs in BigQuery. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources (datasets, tables, views), or perform basic data ingestion and analysis.

Use this Skill: https://skilld.dev/gh/google/skills/bigquery-basics

This session only. Nothing lands on disk.

referencesclient-library-usage.md

≈580 tokens on demand. Your agent reads this file only when SKILL.md points to it.

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

Python

  • Installation:

    pip install --upgrade google-cloud-bigquery
  • Usage Example:

    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

Java

  • Maven Dependency:

    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>google-cloud-bigquery</artifactId>
    </dependency>
  • Usage Example:

    BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
    QueryJobConfiguration queryConfig = QueryJobConfiguration.newBuilder(
        "SELECT * FROM dataset.table").build();
    TableResult results = bigquery.query(queryConfig);
  • Java Reference

Node.js (TypeScript)

  • Installation:

    npm install @google-cloud/bigquery
  • Usage Example:

    import {BigQuery} from '@google-cloud/bigquery';
    const bigquery = new BigQuery();
    const [rows] = await bigquery.query('SELECT * FROM dataset.table');
  • Node.js Reference

Go

  • Installation:

    go get cloud.google.com/go/bigquery
  • Usage Example:

    ctx := context.Background()
    client, _ := bigquery.NewClient(ctx, "project-id")
    q := client.Query("SELECT * FROM dataset.table")
    it, _ := q.Read(ctx)
  • Go Reference

BigQuery DataFrames (BigFrames)

For Python users, bigframes provides a pandas-like API that executes directly in BigQuery.

pip install --upgrade bigframes

Source: SKILL.md on GitHub

No alerts10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    This skill provides comprehensive guidance for managing Google BigQuery resources, including CLI usage, client libraries, and infrastructure as code. It implements standard vendor practices for command attribution and emphasizes security best practices such as the principle of least privilege. No security issues were detected.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: LOW · No issues

Signed by skilld at becc4b8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
metadata
{
  "version": "1.0.0",
  "category": "BigDataAndAnalytics"
}

README badge

README badge for google/skills/bigquery-basics