Skip to main content

Set up BigQuery with Ascend

Overview

In this quickstart guide, you'll learn how to use Google BigQuery as your Data Plane in Ascend.

This guide will take you through the following steps:

Prerequisites

Create a GCP Project

GCP Projects & Resource Isolation

Ascend recommends creating a dedicated GCP project for your Ascend workloads to ensure proper resource isolation. However, if you cannot create a new project or prefer to use an existing one, you can skip this step.

  1. Log in to your Google account.
  2. Create a new GCP project. For more information on creating a GCP project, see Google Cloud documentation.
    • Project name: We recommend changing the project name to something more descriptive, such as BigQuery Data Plane for Ascend.
    • Project ID: Click Edit and enter bigquery-data-plane-<YOUR-ORG> in the box that appears.
      note

      If you leave this blank, the project ID will be generated for you.

  • Copy the project ID to your clipboard.
    • Billing Account: Choose the appropriate billing account for your project.
  • Click Create

Grant permissions to your Environment's service account

Follow these steps to locate your Environment service account email:

  1. In the top-right corner of your Ascend Instance, click on your profile picture and select Settings
  2. Navigate to the Environment section and select the Default Environment
  3. Copy the GCP service account email

details

Follow these steps to grant permissions:

note

For this quickstart, we're granting broad permissions to simplify setup. Later, you can follow the principle of least privilege and grant only the minimum required permissions.

  1. Navigate to IAM & Admin > Service Accounts in the GCP Console
  2. Click Select project in the top right
  3. Select the project named BigQuery Data Plane for Ascend with the ID bigquery-data-plane-<YOUR-ORG> (or use the project name you configured above)
  4. Click IAM in the left navigation panel
  5. Click Grant access in the View by principals section
  6. Paste the Ascend Environment service account email in the New principals field
  7. Click the Select a role dropdown and choose BigQuery admin
  8. Click Save to apply the changes

Configure your Workspace & Project

note

Alternatively, you can keep the out-of-the-box Project configuration and create a new BigQuery Data Plane Connection instead. This allows you to use the existing setup and proceed directly to running the sales Flow.

Configure your Default Ascend Project to use the BigQuery-specific template:

  1. In the top-right corner of your Ascend Instance, click on your profile picture and select Settings
  2. Go to Projects & Deployments and select the Default Project
  3. Change the Project root to projects/default/bigquery
  4. Click Save to apply your changes
  5. Navigate back to your Ascend Workspace via the homepage or with Cmd+K search navigation
  6. Open the Files panel and locate ascend_project.yaml toward the bottom of the file tree.
  7. Set project_id to bigquery-data-plane-<YOUR-ORG> (to match the GCP project you created above)
  8. Set dataset to sales (or choose another name for your BigQuery dataset)
  9. Use Cmd + S / Ctrl + S to save your ascend_project.yaml.

Run the sales Flow

  1. In the Super Graph view of your Ascend Workspace, double-click the sales Flow to open the Flow Graph view, which shows all Components in the sales Flow
  2. In the build info panel on the top left, click Run Flow and watch all Components in your Flow execute from left to right

View Ascend tables in BigQuery

  1. Right-click on the read_sales_website Component (or any Component) in the Flow Graph
  2. Select Records to view the data in the table created by this Component
  3. Click open in BigQuery in the top left of the popup tab folder
  4. View your data in the BigQuery console

This demonstrates Data Plane persistence in action! With this setup, you can push your compute and storage down to the BigQuery Data Plane for efficient data processing.

🎉 Congratulations! You've successfully configured BigQuery as your Data Plane and run your first Flow!

Next steps

👩🏻‍💻 Follow the developer quickstart to build your own Flow in Ascend