class_docstr: Interact with Pinot Broker Query API.
  
  This hook uses standard-SQL endpoint since PQL endpoint is soon to be deprecated.
  https://docs.pinot.apache.org/users/api/querying-pinot-using-standard-sql
docstr: Get the connection uri for pinot broker.
  
  e.g: http://localhost:9000/query/sql
docstr_tok: ["Get","the","connection","uri","for","pinot","broker",".","e.g",":","http",":","\/\/localhost:9000\/query\/sql"]
code: def get_uri(self) -> str:
      """
      Get the connection uri for pinot broker.
  
      e.g: http://localhost:9000/query/sql
      """
      conn = self.get_connection(getattr(self, self.conn_name_attr))
      host = conn.host
      if conn.port is not None:
          host += f":{conn.port}"
      conn_type = conn.conn_type or "http"
      endpoint = conn.extra_dejson.get("endpoint", "query/sql")
      return f"{conn_type}://{host}/{endpoint}"
  
imports: from __future__ import annotations
  import os
  import subprocess
  from typing import TYPE_CHECKING, Any, Iterable, Mapping
  from pinotdb import connect
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
  from airflow.providers.common.sql.hooks.sql import DbApiHook
label_desc: Use image node_id 2 for calling the PinotDbApiHook obj's underlying member method code with example usage: obj.get_uri() and returns: conn_type, str, host, str, endpoint