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: Execute the sql and returns a set of records.
  
  :param sql: the sql statement to be executed (str) or a list of
      sql statements to execute
  :param parameters: The parameters to render the SQL query with.
docstr_tok: ["Execute","the","sql","and","returns","a","set","of","records",".",":","param","sql",":","the","sql","statement","to","be","executed","(","str",")","or","a","list","of","sql","statements","to","execute",":","param","parameters",":","The","parameters","to","render","the","SQL","query","with","."]
code: def get_records(
      self,
      sql: str | list[str],
      parameters: Iterable | Mapping[str, Any] | None = None,
      **kwargs,
  ) -> Any:
      """
      Execute the sql and returns a set of records.
  
      :param sql: the sql statement to be executed (str) or a list of
          sql statements to execute
      :param parameters: The parameters to render the SQL query with.
      """
      with self.get_conn() as cur:
          cur.execute(sql)
          return cur.fetchall()
  
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 3 for calling the PinotDbApiHook obj's underlying member method code with example usage: obj.get_records(sql, parameters) and returns: cur