Introduction to tables (original) (raw)

A BigQuery table contains individual records organized in rows. Each record is composed of columns (also called fields).

Every table is defined by a schema that describes the column names, data types, and other information. You can specify the schema of a table when it is created, or you can create a table without a schema and declare the schema in the query job or load job that first populates it with data.

Use the format projectname.datasetname.tablename to fully qualify a table name when using GoogleSQL, or the format projectname:datasetname.tablename to fully qualify a table name when using the bq command-line tool.

Table types

The following sections describe the table types that BigQuery supports.

Standard BigQuery tables

Standard BigQuery tables contain structured data and are stored in BigQuery storage in a columnar format. You can also store references to unstructured data in standard tables by using struct columns that adhere to theObjectRefformat. For more information about working with ObjectRef values, seeSpecify ObjectRef columns in table schemas.

BigQuery has the following table types:

External tables

External tables are stored outside out of BigQuery storage and refer to data that's stored outside of BigQuery. For more information, seeIntroduction to external data sources. External tables include the following types:

Views

Views are logical tables that are defined by using a SQL query. These include the following types:

Table limitations

BigQuery tables are subject to the following limitations:

For information about BigQuery external table limitations, see the following topics:

Table quotas

Quotas and limits apply to the different types of jobs you can run against tables, including the following quotas:

For more information about all quotas and limits, see Quotas and limits.

Table pricing

When you create and use tables in BigQuery, your charges are based on how much data is stored in the tables and partitions and on the queries you run against the table data:

Many table operations are free, including loading, copying, and exporting data. Though free, these operations are subject to BigQueryquotas and limits. For information about all free operations, see Free operations on the pricing page.

Table security

To control access to tables in BigQuery, seeControl access to resources with IAM.

What's next