Details

    • Task
    • Resolution: Fixed
    • Major
    • Trinity
    • Trinity
    • query
    • None
    • DOC-2023-S25
    • 0

    Description

      This function has been checked and closed in Trinity Reverify so I'm assuming it's been added to release/7.6.

      [[node-uuid,NODE_UUID()]]
      == NODE_UUID(`expression`)
       
      === Description
       
      Returns the UUID of a node.
       
      === Arguments
       
      expression::
      A string, or an expression resolving to a string, representing a node name.
      To get the UUID of the node on which the query is running, use the empty string `""`.
       
      === Return Value
       
      A string representing the node UUID.
      If the input expression is not a string, the return value is `null`.
      If the input expression is `missing`, the return value is also `missing`.
       
      === Example
       
      [[node-uuid-ex,NODE_UUID() Example]]
      ====
      .Query
      [source,sqlpp]
      ----
      SELECT NODE_UUID("") AS from_empty_string,
             NODE_UUID("127.0.0.1:8091") AS from_node_uuid,
             NODE_UUID(NODE_NAME()) AS from_node_uuid_function;
      ----
       
      .Result
      [source,json]
      ----
      [
        {
          "from_empty_string": "b4920c17d0f2a130d4e70fe387637646",
          "from_node_uuid": "b4920c17d0f2a130d4e70fe387637646",
          "from_node_uuid_function": "b4920c17d0f2a130d4e70fe387637646"
        }
      ]
      ----
      ====
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              simon.dew Simon Dew
              simon.dew Simon Dew
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty