Stay organized with collections Save and categorize content based on your preferences.
Introduction to connectionsBigQuery lets you create external connections to query data that's stored outside of BigQuery in Google Cloud services like Cloud Storage or Spanner, or in third-party sources like Amazon Web Services (AWS) or Microsoft Azure. These external connections use the BigQuery Connection API.
For example, suppose that you store details about customer orders in Cloud SQL and data about sales in BigQuery, and you want to join the two tables in a single query. You can create a Cloud SQL connection to the external database by using the BigQuery Connection API. With connections, you never send database credentials as cleartext.
A connection is encrypted and securely stored in the BigQuery connection service. You can give users access to connections by granting them BigQuery connection Identity and Access Management (IAM) roles.
Connection typesBigQuery provides different connection types for the following external data sources:
To create an Amazon S3 connection with BigQuery Omni, see Connect to Amazon S3.
Once you have an existing Amazon S3 connection, you can do the following:
Stored procedures for Spark let you run stored procedures written in Python using BigQuery. A Spark connection lets you connect to Dataproc Serverless and run the stored procedures for Spark.
To create this connection, see Create connections.
Blob Storage connectionsTo create a Blob Storage connection with BigQuery Omni, see Connect to Blob Storage.
Once you have an existing Blob Storage connection, you can do the following:
A Google Cloud resource connection is a connection to authorize access to other Google Cloud resources such as Vertex AI remote models, remote functions, and BigLake. For details on how to set up a Google Cloud resource connection, see Create and set up a Cloud resource connection.
Once you have an existing Google Cloud resource connection, you can create the following BigQuery objects with it:
To create a Spanner connection, see Connect to Spanner.
Once you have an existing Spanner connection, you can run federated queries.
Cloud SQL connectionsTo create a Cloud SQL connection, see Connect to Cloud SQL.
Once you have an existing Cloud SQL connection, you can run federated queries.
AlloyDB connectionsTo create an AlloyDB connection, see Connect to AlloyDB for PostgreSQL.
Once you have an existing AlloyDB connection, you can run federated queries.
SAP Datasphere connectionsPreview
This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the Service Specific Terms. Pre-GA products and features are available "as is" and might have limited support. For more information, see the launch stage descriptions.
To create an SAP Datasphere connection, see Connect to SAP Datasphere.
Once you have an existing SAP Datasphere connection, you can run federated queries.
Audit logsBigQuery logs usage and management requests about connections. For more information, see BigQuery audit logs overview.
What's nextExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["BigQuery enables querying data from external sources like Cloud Storage, Spanner, AWS, and Azure through the BigQuery Connection API."],["Connections are securely encrypted and stored, eliminating the need to send database credentials as cleartext, and they can be shared with users via IAM roles."],["BigQuery supports various connection types for different external data sources, including Amazon S3, Azure Blob Storage, Google Cloud resources, Spanner, Cloud SQL, AlloyDB, SAP Datasphere, and Spark."],["Once a connection is established, users can create external tables, run queries, export results, and build datasets based on data from these external sources."],["Connections are used to run federated queries, create external tables, remote functions, remote models, and other objects related to data outside BigQuery."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4