Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
AGGREGATOR_ ID
On this page
The AGGREGATOR_ function 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: