SQL/MX 2.x Query Guide (H06.04+, J06.03+)

SQL/MX Operators
HP NonStop SQL/MX Query Guide540437-005
7-62
SHORTCUT_SCALAR_AGGR Operator
SHORTCUT_SCALAR_AGGR Operator
Groupby Group
The SHORTCUT_SCALAR_AGGR operator occurs for aggregates without a GROUP
BY clause and returns one row. The description field for this operator contains:
The example of the SHORTCUT_SCALAR_AGGR operator is based on:
prepare TestQuery25 from
select min(f2) from tt22;
DESCRIPTION
fragment_id ............ 2
parent_frag ............ 0
fragment_type .......... dp2
aggregates ............... min(DETCAT.DETSCH.II22.F2)
SORT Operator
Sort Group
A SORT operator describes a portion of an execution plan that performs a sort. The
operator for a SORT operator is always SORT.
The SORT operator has one child node. The description field for this operator contains:
Token Followed by... Data Type
fragment_id A sequential number assigned to the fragment.
0 is always the master executor and 1 is
reserved for the EXPLAIN plan. Numbers 2 to n
will be ESP or DAM fragments.
integer
parent_frag The fragment_id for the parent fragment of the
current fragment. The value is (none) for the
master executor.
integer
fragment_type Master, ESP, or DP2. text
aggregates Expression of the aggregate function. expr(text)
selection_predicate Expression of the WHERE clause. expr(text)
Token Followed by ... Data Type
fragment_id A sequential number assigned to the fragment.
0 is always the master executor and 1 is
reserved for the EXPLAIN plan. Numbers 2 to
n will be ESP or DAM fragments.
integer