Merges data from one or more tables with comparable data types into a new table.
The following merges are supported:
UNION (DISTINCT/ALL) - For data set union details and examples, see Union. For limitations, see Union Limitations and Cautions.
INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see Intersect. For limitations, see Intersect Limitations.
EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see Except. For limitations, see Except Limitations.
MERGE VIEWS - For a given set of filtered views on a single table, creates a single filtered view containing all of the unique records across all of the given filtered data sets.
Non-charN 'string' and 'bytes' column types cannot be merged, nor can columns marked as store-only.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
table_name | string | Name of the table to be created. Has the same naming restrictions as tables. | ||||||||||||||||||||||||||||||||||||||
table_names | array of strings | The list of table names to merge. Must contain the names of one or more existing tables. | ||||||||||||||||||||||||||||||||||||||
input_column_names | array of arrays of strings | The list of columns from each of the corresponding input tables. | ||||||||||||||||||||||||||||||||||||||
output_column_names | array of strings | The list of names of the columns to be stored in the output table. | ||||||||||||||||||||||||||||||||||||||
options | map of string to strings | Optional parameters. The default value is an empty map ( {} ).
|
Name | Type | Description | ||||
---|---|---|---|---|---|---|
table_name | string | Value of input parameter table_name. | ||||
info | map of string to strings | Additional information. The default value is an empty map ( {} ).
|