Skip to content

feat(bigquery): add Google BigQuery integration#3341

Merged
waleedlatif1 merged 7 commits intostagingfrom
waleedlatif1/add-google-bigquery
Feb 26, 2026
Merged

feat(bigquery): add Google BigQuery integration#3341
waleedlatif1 merged 7 commits intostagingfrom
waleedlatif1/add-google-bigquery

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • Add Google BigQuery integration with 5 operations: query, list datasets, list tables, get table, insert rows
  • Tools, block, icon, OAuth provider, scope descriptions, and docs all wired up
  • Follows existing Google tools patterns (OAuth, block structure, registry)

Type of Change

  • New feature

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 26, 2026 3:27am

Request Review

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 25, 2026

Greptile Summary

Added comprehensive Google BigQuery integration with 5 operations (query, list datasets, list tables, get table, insert rows). Implementation follows established patterns from other Google integrations with proper OAuth setup, block configuration, tool definitions, and documentation.

Key Changes:

  • Added 5 BigQuery tool implementations with proper OAuth authentication
  • Registered google-bigquery OAuth provider with correct scopes
  • Created block configuration with operation dropdown and AI-assisted input generation
  • Added comprehensive documentation with input/output tables for all operations
  • Integrated BigQuery icon and updated UI components

Minor Issues:

  • pageToken parameters use visibility: 'hidden' in list_datasets and list_tables tools, which is inconsistent with other integrations (e.g., Calendly uses user-or-llm). This prevents LLMs from handling pagination automatically.

Confidence Score: 5/5

  • Safe to merge - well-implemented integration following established patterns
  • Implementation is comprehensive and follows existing Google integration patterns. All OAuth flows, tool definitions, and configurations are properly structured. Only minor style inconsistency with pageToken visibility that doesn't affect functionality.
  • No files require special attention - the pageToken visibility issue is a minor style inconsistency

Important Files Changed

Filename Overview
apps/sim/tools/google_bigquery/query.ts Query tool implementation with proper OAuth, parameter validation, and response transformation
apps/sim/tools/google_bigquery/insert_rows.ts Insert rows tool with correct logic for counting inserted rows based on skipInvalidRows behavior
apps/sim/tools/google_bigquery/list_datasets.ts List datasets tool with pageToken visibility set to hidden (inconsistent with other integrations)
apps/sim/tools/google_bigquery/list_tables.ts List tables tool with pageToken visibility set to hidden (inconsistent with other integrations)
apps/sim/blocks/blocks/google_bigquery.ts Complete block configuration with all 5 operations, proper OAuth setup, and AI-assisted input generation
apps/sim/lib/oauth/oauth.ts Added google-bigquery OAuth service configuration following existing Google tools patterns
apps/sim/lib/auth/auth.ts Added google-bigquery OAuth provider with proper scopes and user info handling

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User Selects BigQuery Operation] --> B{Operation Type?}
    B -->|Query| C[Run SQL Query]
    B -->|List Datasets| D[List Datasets]
    B -->|List Tables| E[List Tables]
    B -->|Get Table| F[Get Table Metadata]
    B -->|Insert Rows| G[Insert Rows]
    
    C --> H[Authenticate with Google]
    D --> H
    E --> H
    F --> H
    G --> H
    
    H --> I[BigQuery API v2]
    
    C --> J[Return: columns, rows, jobReference, cacheHit]
    D --> K[Return: datasets, nextPageToken]
    E --> L[Return: tables, totalItems, nextPageToken]
    F --> M[Return: schema, numRows, numBytes]
    G --> N[Return: insertedRows, errors]
Loading

Last reviewed commit: cd323d8

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

18 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@waleedlatif1 waleedlatif1 force-pushed the waleedlatif1/add-google-bigquery branch from 28e9cc7 to cd323d8 Compare February 25, 2026 21:06
@waleedlatif1
Copy link
Collaborator Author

@greptile

@waleedlatif1
Copy link
Collaborator Author

@cursor review

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

19 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

@waleedlatif1 waleedlatif1 merged commit e4fb8b2 into staging Feb 26, 2026
11 checks passed
@waleedlatif1 waleedlatif1 deleted the waleedlatif1/add-google-bigquery branch February 26, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant