UTYPE
Specifies how to combine UNION ALL input.
Specifies how to combine
UNION ALL
input.
Syntax
UNION ALL /*+UTYPE(union-type)*/
Arguments
union-type
- One of the following arguments:
-
U
: ConcatenatesUNION ALL
input (default). -
M
: MergesUNION ALL
input in the same sort order as the source query results. This option requires all input from the source queries to use the same sort order; otherwise, Vertica throws a warning and concatenates theUNION ALL
input.Note
The optimizer relies upon the query or DDL to verify whether input data is sorted, rather than the actual runtime order of the data.
-
Requirements
Queries that include the UTYPE
hint must also include the SYNTACTIC_JOIN
hint. Otherwise, the optimizer ignores the UTYPE
hint and throws a warning.