bigquery
/bigquery
Wspiera pracę z Google Cloud BigQuery: standardowy SQL, partycjonowanie, klastrowanie, optymalizację kosztów i ML, przy analizach na ogromnych zbiorach i projektowaniu hurtowni danych.
- Autor
- G1Joshi ↗
- Repozytorium
- Agent-Skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wspiera pracę z Google Cloud BigQuery: standardowy SQL, partycjonowanie, klastrowanie, optymalizację kosztów i ML, przy analizach na ogromnych zbiorach i projektowaniu hurtowni danych.
Oryginalny opis (EN)
Expert Google Cloud BigQuery assistance covering standard SQL, partitioning, clustering, cost optimization, and ML. Use when running petabyte analytics queries, designing data warehouse schemas, or optimizing BI workloads.
Jak działa
- When to Use
- Quick Start
- Core Concepts
- Common Patterns
- Best Practices
- Troubleshooting
- References
Podgląd SKILL.md
--- name: bigquery description: Expert Google Cloud BigQuery assistance covering standard SQL, partitioning, clustering, cost optimization, and ML. Use when running petabyte analytics queries, designing data warehouse schemas, or optimizing BI workloads. --- # Google BigQuery BigQuery is Google's serverless, highly scalable, and cost-effective multi-cloud data warehouse. It processes terabytes in seconds. ## When to Use - **Serverless Enterprise Data Warehousing**: Querying petabytes of structured and semi-structured data with zero infrastructure management. - **Real-Time Streaming Analytics**: Ingesting and querying millions of events per second with sub-second data freshness. - **In-Database Machine Learning (BigQuery ML)**: Training and scoring regression, classification, and forecasting models using standard SQL. - **Federated Multi-Cloud Queries (BigQuery Omni)**: Querying data stored in AWS S3 and Azure Blob Storage directly without egress replication. ## Quick Start ```sql -- Standard SQL SELECT name, COUNT(*) as count FROM `bigquery-public-data.usa_names.usa_1910_2013` GROUP BY name ORDER BY count DESC LIMIT 10; ``` ## Core Concepts ### Capacitor Columnar Storage & Dremel Query Engine Data is stored in proprietary Capacitor columnar format with dynamic tree-based Dremel execution slots: ```sql -- Partitioned & Clustered Table DDL CREATE OR REPLACE TABLE `my_project.analytics.user_events` ( event_id STRING, user_id STRING, event_name STRING, event_timestamp TIMESTAMP, metadata JSON ) PARTITION BY DATE(event_timestamp) CLUSTER BY user_id, event_name OPTIONS( description="Partitioned clickstream events with clustering for point lookups", require_partition_filter=true ); ``` ### Semi-Structured Native JSON Querying Queries nested JSON attributes efficiently without schema migrations: ```sql SELECT user_id, JSON_VALUE(metadata.device.os) AS os_name, JSON_EXTRACT_SCALAR(metadata, '$.cart.total') AS cart_total FROM `my_project.analytics.user_events` WHERE DATE(event_timestamp) = CURRENT_DATE() AND JSON_VALUE(metadata.action) = 'checkout'; ``` ### BigQuery ML Model Training Trains and evaluates predictive models entirely inside SQL: ```sql CREATE OR REPLACE MODEL `analytics.churn_prediction_model` OPTIONS(model_type='logistic_reg', input_label_cols=['has_churned']) AS SELECT total_spend, session_count, has_churned FROM `analytics.customer_features`; ``` ## Common Patterns ### Partitioning and Clustering for Cost-Optimized Queries **Problem**: Full table scans across billions of event rows lead to astronomical query costs and high latency. **Solution**: Partition by date and cluster by high-cardinality lookup keys: ```sql CREATE TABLE `project.analytics.events` ( event_id STRING, user_id STRING, event_type STRING, event_timestamp TIMESTAMP ) PARTITION BY DATE(event_timestamp) CLUSTER BY user_id, event_type OPTIONS ( require_partition_filter = TRUE, partition_expiration_days = 365 ); ``` ## Best Practices **Do**: - Always Enforce `require_partition_filter=true`: Prevent runaway query billing by requiring users to specify date partitions in `WHERE` clauses. - Cluster by High-Cardinality Filter Columns: Order tables by user ID, customer ID, or category to minimize scanned bytes. - Use BigQuery Storage Write API: Stream real-time data using the gRPC-based Storage Write API for reduced cost and guaranteed atomicity. - Inspect `Bytes Billed` in Query Validator: Check dry-run scanned byte estimates before executing heavy exploratory queries. **Don't**: - Use `SELECT *`: BigQuery charges per byte scanned; querying all columns drains query budgets. - Use `ORDER BY` in subqueries: Global sorting requires single-node processing; sort only in the final outer query with `LIMIT`. - Export large query results to single CSVs: Use partitioned wildcards (`EXPORT DATA OPTIONS(...)`) for multi-part exports. ## Troubleshooting | Error | Cause | Solution | | :------------------------------------------ | :--------------------------------------------------------------------- | :---------------------------------------------------------------------------------------- | | `Cannot query without partition filter` | `require_partition_filter` enabled but query lacked date WHERE clause. | Include `WHERE DATE(event_timestamp) >= 'YYYY-MM-DD'` in query. | | `Resources exceeded during query execution` | Memory exhaustion from large skew in `JOIN` or `ORDER BY`. | Pre-aggregate data, filter early, and avoid `ORDER BY` without `LIMIT`. | | `Quota exceeded: Exceeded rate limits` | Too many concurrent DDL/DML mutation queries per table. | Batch append mutations using BigQuery Storage Write API rather than small single INSERTs. | ## References - [BigQuery Documentation](https://cloud.google.com/bigquery/docs)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · G1Joshi/Agent-Skills | 100 | MIT |
| builderio/agent-native | 100 | MIT |
| builderio/agent-native | 100 | MIT |
| costory-io/costory-finops-mcp-skills | 100 | Apache-2.0 |
| henkisdabro/wookstar-claude-plugins | 100 | MIT |
| jpantsjoha/googlecloud-plugin | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 13d19a148ae7 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100bigquery-optimization
Prowadzi optymalizację środowisk BigQuery: planowanie pojemności i edycji, partycjonowanie i klastrowanie, modele rozliczeń, cykl życia danych oraz zapytania SQL, w tym redukcję kosztów. - 100sql-pro
Pisze złożony SQL analityczny w PostgreSQL, BigQuery i Snowflake oraz projektuje schematy hurtowni danych. - 100gcp-data-engineering
Doradza w architekturze potoków danych w Google Cloud: jezioro, hurtownia i lakehouse, batch czy streaming, dobór Dataform, Composer lub Dataflow oraz koszty i wydajność BigQuery (partycjonowanie, klastrowanie, sloty). - 90bigquery-sql
Optymalizuje zapytania SQL w BigQuery pod kątem kosztu i wydajności, stosując sprawdzone zasady przetwarzania danych. - 100optimizing-bigquery-queries
Obniża koszt i czas zapytań BigQuery: partycjonowanie i klastrowanie, mniej przetwarzanych bajtów, unikanie SELECT *, sloty i rezerwacje, funkcje przybliżone i widoki zmaterializowane. - 95setup-warehouse-bigquery
Konfiguruje BigQuery jako hurtownię danych dla Confidence, gdy użytkownik wybrał tę bazę.