Welcome to the Alteryx Knowledge Base
Created/Edited -
Connect Alteryx One to Google BigQuery. Following these steps will enable Alteryx One to authenticate against BigQuery and route workflow data through Google Cloud Storage (GCS) as private data storage, enabling push-down processing and governed data access.
Alteryx One to Google BigQuery through Google Cloud Storage (GCS).
For an overview of how Alteryx works with cloud data warehouses, see Cloud data warehouses and Alteryx.
Detailed setup guides for other cloud data warehouses are available below.
Before beginning, confirm the following access and configuration requirements are in place:
Alteryx One workspace admin rights
- Admin access is required to configure integrations in the Alteryx One admin console, create connections to external data warehouses, and manage workspace-level settings like Private Data Storage (GCS).
GCP project owner or editor rights
- GCP project-level access is needed to create service accounts, assign IAM roles, enable required APIs (BigQuery API, BigQuery Storage API, Cloud Storage API), and provision VPC networking if using Private Google Access.
Private Data Storage (GCS) is already configured in Alteryx One — if not, complete this first via the Alteryx admin console
- Alteryx One requires GCS as Private Data Storage to enable BigQuery push-down processing. Without GCS configured, Alteryx cannot route queries to BigQuery for in-database execution, and all processing will occur in Alteryx's compute layer (slow and expensive).
Network access between Alteryx One and Google BigQuery (check firewall rules if using VPC Service Controls or Private Google Access)
- If your organization uses VPC Service Controls to restrict BigQuery access to specific networks, you must configure appropriate firewall rules to allow Alteryx One service IPs. Without proper network routing, connection tests will fail.
A GCS staging bucket for temporary BigQuery data (recommended: dedicated bucket with lifecycle policies)
- BigQuery load jobs and exports require a GCS staging bucket. Using a dedicated bucket with auto-expiry lifecycle rules prevents storage cost creep and simplifies permission management
Note: Service account keys should be rotated every 90 days (or per your organization's credential policy). Set a calendar reminder to regenerate keys before expiry to avoid workflow failures.
Admin Setup — GCP & BigQuery Provisioning
This section covers the initial GCP and BigQuery setup required before you can configure the Alteryx One integration. If your BigQuery datasets and GCS buckets are already provisioned, skip to the Integration Setup section.
Part A — GCP Project Setup
A1. Create or Select a GCP Project
- Log in to the GCP Console → navigate to 'Select a project' (top navigation bar)
- Either select an existing project or click 'New Project'
- If creating a new project:
-
- Project Name: Choose a descriptive name (e.g., 'alteryx-analytics-prod')
- Organization: Select your organization (if applicable)
- Billing Account: Link a billing account (required for BigQuery usage)
- Click 'Create' and wait for the project to provision
Why? A dedicated GCP project isolates BigQuery resources, simplifies billing tracking, and enables clear IAM boundary enforcement. Multi-tenant projects can lead to permission conflicts and cost allocation challenges.
A2. Enable Required GCP APIs
- In the GCP Console, navigate to 'APIs & Services' → 'Library'
- Search for and enable the following APIs:
-
- BigQuery API (required for querying and managing datasets)
- BigQuery Storage API (required for high-throughput reads from Alteryx)
- Cloud Storage API (required for GCS staging buckets)
- IAM Service Account Credentials API (required for service account token generation)
- Cloud Resource Manager API (required for project-level operations)
- Confirm all APIs show 'Enabled' status
Why? BigQuery Storage API is critical for Alteryx performance — it enables parallel reads that are 10-100x faster than the standard BigQuery API. Missing this API will result in slow data retrieval and high query costs.
A3. Create a GCS Staging Bucket
- Navigate to 'Cloud Storage' → 'Buckets'
- Click 'Create Bucket'
- Configure the bucket:
-
- Bucket Name: e.g., 'alteryx-staging-prod' (must be globally unique)
- Location Type: Region (select the same region as your BigQuery datasets for optimal performance)
- Storage Class: Standard
- Access Control: Uniform (recommended for IAM-based permissions)
- Click 'Create'
- Navigate to the bucket → 'Lifecycle' tab → 'Add a rule'
- Configure auto-expiry:
-
- Action: Delete object
- Condition: Age is greater than 7 days (adjust based on your retention needs)
- Click 'Save'
Why? A staging bucket with lifecycle policies prevents temporary files from accumulating and driving up storage costs. Without auto-expiry, staging files can grow to terabytes over months, leading to unexpected bills.
A4. Create Service Accounts
You will need two service accounts: one for GCS Private Data Storage and one for BigQuery connections.
A4a. Create GCS Service Account
- Navigate to 'IAM & Admin' → 'Service Accounts'
- Click 'Create Service Account'
- Enter service account details:
-
- Service Account Name: e.g., 'alteryx-gcs-sa'
- Description: 'Service account for Alteryx GCS Private Data Storage'
- Click 'Create and Continue'
- Assign IAM roles:
-
- Storage Object Admin (roles/storage.objectAdmin) on the staging bucket
- Storage Admin (roles/storage.admin) on the staging bucket
- Click 'Continue' → 'Done'
- In the service account list, click the three dots → 'Manage keys'
- Click 'Add Key' → 'Create new key' → 'JSON'
- The JSON key file automatically downloads — store it securely in Google Secret Manager
Why? This service account is used by Alteryx to stage data in GCS. Using a dedicated service account (instead of a personal account) ensures continuity and auditability. The JSON key acts as a long-lived credential and must be protected like a password.
A4b. Create BigQuery Service Account
- Click 'Create Service Account' again
- Enter service account details:
-
- Service Account Name: e.g., 'alteryx-bigquery-sa'
- Description: 'Service account for Alteryx BigQuery connections'
- Click 'Create and Continue'
- Assign IAM roles at the project level:
-
- BigQuery Data Editor (roles/bigquery.dataEditor) — for read/write access to datasets
- BigQuery Job User (roles/bigquery.jobUser) — for running queries
- BigQuery Admin (roles/bigquery.routines.create) — for creating user defined functions needed for some tools
- BigQuery Admin (roles/bigquery.routines.update) — for updating user defined functions needed for some tools
- BigQuery Admin (roles/bigquery.routines.delete) — for deleting user defined functions needed for some tools
- Storage Object Admin (roles/storage.objectAdmin) — for staging bucket access
- Click 'Continue' → 'Done'
- Generate a JSON key and store it in Google Secret Manager
Why? This service account is used by Alteryx workflows to query BigQuery. The BigQuery Data Editor role allows SELECT, INSERT, UPDATE, DELETE operations. For read-only workflows, use BigQuery Data Viewer (roles/bigquery.dataViewer) instead.
A5. Configure IAM Permissions at Dataset Level (Optional but Recommended)
For finer-grained access control, assign permissions at the dataset level instead of project-wide.
- Navigate to 'BigQuery' in the GCP Console
- Select a dataset → click 'Sharing' → 'Permissions'
- Click 'Add Principal'
- Enter the service account email (e.g., alteryx-bigquery-sa@project-id.iam.gserviceaccount.com)
- Assign roles:
-
- BigQuery Data Editor (for read/write) or BigQuery Data Viewer (for read-only)
- Click 'Save'
Why? Dataset-level permissions follow the principle of least privilege — the service account can only access specific datasets, not all project data. This reduces the blast radius if credentials are compromised.
Part B — BigQuery Configuration
B1. Create BigQuery Datasets
- Navigate to 'BigQuery' in the GCP Console
- In the Explorer panel, click your project name → 'Create Dataset'
- Configure the dataset:
-
- Dataset ID: e.g., 'alteryx_staging' (for dev/test) or 'alteryx_prod' (for production)
- Data Location: Select the same region as your GCS staging bucket
- Default Table Expiration: Leave blank (or set based on your retention policy)
- Click 'Create Dataset'
- Repeat for additional datasets (e.g., 'raw', 'gold', 'ml_features')
Why? Separating dev and prod datasets prevents accidental overwrites and enables different retention policies. Using the same region for datasets and GCS buckets minimizes data transfer costs (cross-region transfers incur egress fees).
B2. Configure Table Partitioning & Clustering (Best Practice)
For large tables, partition by date and cluster on frequently queried columns to reduce scan costs.
- When creating a table, select 'Partitioning' options:
-
- Partition by: Ingestion time or a TIMESTAMP/DATE column (e.g., created_date)
- Partition Type: DAY (most common)
- Under 'Clustering', add up to 4 columns used in WHERE/JOIN clauses (e.g., customer_id, product_id)
Why? Partitioning and clustering are the primary levers for reducing BigQuery costs. A well-partitioned table can reduce scanned bytes by 90%+ for time-range queries. Clustering further reduces scans by organizing data within partitions.
B3. Configure Reservations (Optional for Production)
BigQuery offers two compute models: on-demand (pay-per-query) and reservations (flat-rate slots).
- For predictable production workloads, navigate to 'BigQuery' → 'Reservations'
- Click 'Create Reservation'
- Configure the reservation:
-
- Reservation Name: e.g., 'alteryx-prod-reservation'
- Location: Same region as your datasets
- Slots: Start with 100 slots (~$2,000/month) and scale based on utilization
- Click 'Create'
- Assign the reservation to your project or specific datasets
Why? Reservations provide predictable performance and costs for sustained workloads. If your monthly BigQuery bill exceeds ~$2,000, reservations are typically more cost-effective than on-demand. Use flex slots for short-term bursts (1-60 second commitments).
Integration Setup — Connecting Alteryx One to BigQuery
Step 1 — Configure GCS as Private Data Storage
1a. Choose Authentication Method
Alteryx supports two authentication methods for GCS Private Data Storage:
- Service Account Key (recommended for automation) — uses JSON key file
- Cloud Authorization (OAuth 2.0) — uses user-level credentials (requires SSO setup)
Why? Service Account Key is recommended for production because it enables automated workflows without user interaction. OAuth is better for interactive design-time use where user identity and audit trails are important.
Warning: Once you choose an authentication method, you cannot change it without re-provisioning the workspace. Choose carefully based on your automation vs. auditability requirements.
1b. Configure GCS in Alteryx One (Service Account Key Method)
- Log in to your Alteryx One workspace
- Navigate to Workspace Admin → 'Private Data Handling' → 'Storage'
- Select 'Google Cloud Storage'
- Under 'Service Account Key', paste the entire JSON key created in A4a
- Under 'Default Bucket', enter the GCS bucket name (e.g., alteryx-staging-prod)
- (Optional) Enter the Project ID (overrides the project ID in the JSON key)
- Click 'Save' to provision the workspace
Why? Private Data Storage enables BigQuery push-down processing — Alteryx sends queries to BigQuery for in-database execution, then retrieves only the results via GCS. Without this, all data must be pulled into Alteryx's compute layer (slow, expensive, and non-scalable).
1c. Enable live query on the Alteryx workspace
55. Navigate to workspace admin
56. Go to settings
57. Search for Live Query in the text box
58. Set to Enabled
Step 2 — Create BigQuery Connection in Alteryx One
2a. Navigate to Connections
- In Alteryx One, go to the 'Connections' page
- Click 'Create Connection'
- Search for 'Google BigQuery' and select it
2b. Configure the Connection
- Enter connection details:
|
Field |
Value / Notes |
|
Connection Name |
Descriptive name (e.g., 'BigQuery Production - US Central') |
|
Connection Description |
(Optional) Additional context |
|
Project ID |
GCP Project ID where BigQuery datasets reside |
|
Credential Type |
Select 'Service Account Key' |
|
Service Account Key |
Paste the JSON key created in A4b |
- Click 'Test Connection' — a success message should appear
- If successful, click 'Create'
Why? The 'Test Connection' button validates that the service account has the correct IAM permissions and can query BigQuery. This pre-flight check catches permission errors before workflows fail in production.
2c. Alternative: OAuth 2.0 Authentication (Optional)
If using OAuth instead of service account keys:
- First, configure SSO in Alteryx One (Workspace Admin → Single Sign-On → OIDC)
- In GCP Console, create an OAuth 2.0 client (APIs & Services → Credentials → Create OAuth Client ID)
- Add Alteryx callback URL to 'Authorized Redirect URIs'
- Register the OAuth client in Alteryx One (Admin Console → OAuth 2.0 Clients)
- When creating the BigQuery connection, select 'OAuth 2.0' as credential type
- Select your registered client and complete the OAuth flow
Why? OAuth ties BigQuery queries to individual user identities, improving audit trails and enabling user-specific permissions. However, it requires SSO setup and is less suitable for automated workflows (which run without user interaction).
Step 3 — Configure BigQuery as Execution Engine (Optional)
To enable push-down processing (queries execute inside BigQuery):
- Ensure GCS is configured as Private Data Storage (Step 1)
- Ensure the BigQuery connection uses the same service account as GCS Private Data Storage
- In workflow settings, select 'BigQuery' as the execution engine
Why? BigQuery as execution engine means Alteryx sends SQL queries to BigQuery for in-database processing, then retrieves only the final results. This is 10-100x faster and cheaper than pulling raw data into Alteryx for row-by-row processing.
Note: Not all Alteryx tools support BigQuery push-down. Complex transformations may fall back to Alteryx's compute layer. Check the Alteryx documentation for tool compatibility.
Step 4 — Verify the Integration
- In Alteryx One, create a new workflow
- Add an 'Input Data' tool → select your BigQuery connection
- Browse datasets and select a table
- Add a 'Browse' tool to preview results
- Run the workflow — confirm data appears without errors
- Check the job log for push-down confirmation (should show 'Executing in BigQuery')
Why? Running a verification workflow tests the entire end-to-end integration: authentication, network routing, permission grants, and data retrieval. This catches misconfigurations before they impact production workloads.
Tip: Create a scheduled test workflow that runs a lightweight query weekly. This acts as an early-warning system for credential expiry, permission changes, or API failures.
Troubleshooting
Common issues and resolutions:
|
Issue |
Resolution |
|
'Private Data Storage not configured' error |
Set up GCS as private data storage (Step 1) before creating BigQuery connections. BigQuery push-down requires GCS staging. |
|
Authentication fails during connection test |
Verify the service account JSON key is valid and not expired. Check that BigQuery API and BigQuery Storage API are enabled in the GCP project. |
|
Connection succeeds but workflows fail to run |
Check IAM permissions — the service account needs BigQuery Data Editor (or Viewer for read-only), BigQuery Job User, and Storage Object Admin on the staging bucket. |
|
'Permission denied' errors on specific tables |
Grant dataset-level permissions to the service account (Step A5). Run 'SHOW GRANTS' in BigQuery to verify permissions. |
|
Queries are slow or expensive |
Ensure BigQuery Storage API is enabled (Step A2). Verify push-down is working (check job logs for 'Executing in BigQuery'). Review table partitioning and clustering (Step B2). |
|
Service account key expired |
Regenerate the JSON key in GCP Console (IAM & Admin → Service Accounts → Manage Keys). Update the key in Alteryx One connection settings and GCS Private Data Storage. |
|
Cross-region data transfer charges |
Verify GCS staging bucket and BigQuery datasets are in the same region. Cross-region transfers incur egress fees ($0.01-$0.12 per GB). |
|
BigQuery push-down not working |
Confirm GCS and BigQuery connections use the same service account. Check that all workflow inputs/outputs are compatible with push-down (some tools force local processing). |
Security Considerations
- Rotate service account keys every 90 days (or per your organization's credential policy)
- Store JSON keys in Google Secret Manager — never commit them to source control or embed them in workflows
- Use dataset-level IAM permissions instead of project-wide access (principle of least privilege)
- Enable BigQuery audit logging (Admin Activity, Data Access, System Event logs) to track all queries
- Use VPC Service Controls to restrict BigQuery access to specific networks (if required for compliance)
- Configure GCS staging bucket lifecycle policies to auto-delete temporary files after 7 days
- For production workloads, use reservations instead of on-demand to control costs and guarantee throughput
- Partition and cluster large tables to minimize scanned bytes and reduce costs
Best Practices
Performance Optimization
- Enable BigQuery Storage API for high-throughput reads (10-100x faster than standard API)
- Use push-down processing whenever possible — avoid pulling raw data into Alteryx
- Partition tables by date/timestamp and cluster on frequently queried columns
- Use materialized views for repeated aggregations (reduces query costs and latency)
- Stage large writes to GCS (Parquet/Avro format), then load into BigQuery via batch jobs
Cost Management
- Use on-demand pricing for ad-hoc queries; switch to reservations when monthly costs exceed ~$2,000
- Set maximum bytes billed limits on design-time connections to prevent accidental large scans
- Configure budget alerts in GCP Billing to monitor BigQuery spend
- Use batch priority for cost-sensitive workloads (lower cost, longer queue times)
- Avoid SELECT * — query only required columns to minimize scanned bytes
Operational Excellence
- Separate dev/test and prod datasets to prevent accidental overwrites
- Use descriptive connection names (e.g., 'BigQuery Prod - Customer Data' vs. 'bq-conn-1')
- Document which service accounts are used for which connections
- Schedule credential rotation reminders 2 weeks before key expiry
- Monitor BigQuery slot utilization and tune reservation size accordingly
Related Links
- BigQuery & Alteryx Guide — Alteryx Community KB
- GCS as Private Data Storage — Alteryx Online Documentation
- BigQuery Best Practices — Google Cloud Documentation
- BigQuery Storage API — Google Cloud Documentation
- Partitioning and Clustering — Google Cloud Documentation
- BigQuery Reservations — Google Cloud Documentation
- Google IAM Best Practices — Google Cloud Documentation
- Google Secret Manager — Google Cloud Documentation
Cloud data warehouse setup guides
Setting up Alteryx One & Databricks on AWS |
Setting up Alteryx One & Snowflake on AWS |
Setting up Alteryx One & Azure Databricks |
|
Connect Alteryx One to Databricks on AWS using a Personal Access Token (PAT) and Amazon S3 for private data storage. |
Connect Alteryx One to Snowflake on AWS using Amazon S3 for private data storage, enabling push-down processing and governed data access. |
Connect Alteryx One to Azure Databricks using a Personal Access Token (PAT) and configured private data storage. |