BLOCKS Reference

BigQuery

Execute parallel queries

Overview

This BLOCK performs multiple BigQuery queries in parallel based on the contents of a variable.

Properties

Property Explanation
BLOCK name Configure the name displayed on this BLOCK.
GCP service account

Select the GCP service account to use with this BLOCK.

SQL syntax

Select whether your query will use Legacy SQL or Standard SQL syntax.

Query

Designate a query to execute.

You can set a query prefix (#legacySQL or #standardSQL) to execute the query using the SQL syntax of the query prefix, regardless of how you set the SQL syntax property.

To send % format characters, like %Y or %m, directly to BigQuery, use %%. For example, if you enter %%Y, BigQuery will change the %% into a %, thus receive your intended %Y.

Supports % format characters and variable expansion.

Dataset for storing results

Designate the ID of the dataset containing the table that will store the query results.

Supports % format characters and variable expansion.

Table for storing results

Designate the ID of the table that will store the query results.

Supports % format characters and variable expansion.

Multiparameter-referencing variable

Designate a variable containing array data. When the contents are strings, they must first be decoded as JSON data.

In cases of non-empty tables

Select which action to perform when the Table for storing results already contains data.

  • Append: Appends new data to the table.
  • Overwrite: Overwrites the table with the new data.
  • Error: An error occurs if the table is not empty.
Query priority level

Select the query priority level from the following:

  • Interactive: Executes immediately, limited simultaneous queries.
  • Batch: Executes when resources are available, unlimited simultaneous queries.
BLOCK memos Make notes about this BLOCK.
Reattempts in case of errors Configure the number of attempts to try in case of a request error.
Minimum timeout interval Set the number of seconds to wait for results. If results are not returned during this interval, the time will be doubled for each reattempt until the time set in the Maximum timeout interval property is reached.
Maximum timeout interval Indicate the maximum number of seconds to wait for results. The timeout interval will start with the value set in the Minimum timeout interval property and double with each reattempt until reaching the value set here.
Allow results with 1,000+ records Select whether or not to allow query results with over 1,000 records. This cannot be enabled if the Dataset for storing results and Table for storing results properties are blank.
Allow flattened results Select whether or not to flatten nested fields. If you do not allow flattened results, you will not be able to enable the Allow results with 1,000+ records property.
Use query cache Select whether or not to use the query cache.
User-defined functions

If using user-defined functions (UDF), enter them as strings into this property. You can enter multiple UDFs.

Strings starting with gs:// are interpreted as a URI and user-defined functions will be read from the corresponding GCS objects.

This property can only be used when SQL syntax is set to Legacy SQL.

Maximum bytes billed Set a limit for query pricing. Queries that will have bytes billed beyond this limit will fail without incurring charges.

この情報は役に立ちましたか?