AGGREGATOR_ ID
On this page
Returns the unique ID (node_
) for the current aggregator.
When you do not know the specific aggregator you are connecting to, either because you are connecting via the DML endpoint in SingleStore Helios or in situations where a load balancer is used, the ID returned by AGGREGATOR_
can be combined with CONNECTION_
to provide a cluster-wide unique identifier for the active session.
Syntax
AGGREGATOR_ID()
Return Type
Integer.
Example
SELECT AGGREGATOR_ID();
+-----------------+
| AGGREGATOR_ID() |
+-----------------+
| 8 |
+-----------------+
Last modified: November 8, 2023