Skip to main content
BigQuery is Google’s fully managed data warehouse and data analytics platform, capable of handling and analyzing large volumes of data as it is highly scalable. You can test out this process on your own device by using the big-query-sink demo in the integration_test directory of the RisingWave repository.
PREMIUM FEATUREThis is a premium feature. For a comprehensive overview of all premium features and their usage, please see RisingWave premium features.

Prerequisites

Before sinking data from RisingWave to BigQuery, please ensure the following:
  • The BigQuery table you want to sink to is accessible from RisingWave.
  • Ensure you have an upstream materialized view or table in RisingWave that you can sink data from.

Syntax

Parameters

Examples

RisingWave supports three ways to provide the Google Cloud service account JSON key for authenticating with BigQuery. Option 1: Inline credentials string
Example using inline credentials
Option 2: Local JSON key file
Example using a local JSON key file
Option 3: JSON key file stored in S3 When the JSON key file is stored in S3, you must also provide the AWS credentials and region to access it.
Example using a JSON key file stored in S3

Change sequence numbers

Without _CHANGE_SEQUENCE_NUMBER, BigQuery applies the changes of each primary key in the order it ingests them, so a key that changes several times within a short time can end at an older version. With it, queries that trigger a runtime merge read more data, because BigQuery retains changes that carry a sequence number for 48 hours. You can change bigquery.change_sequence_number with ALTER SINK ... CONNECTOR WITH. After it is turned off, BigQuery ignores later updates and deletes of rows that were written with a sequence number.

Data type mapping