class_docstr: This handler handles connection and execution of the Apache Pinot statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Apache","Pinot","statements","."]
docstr: Set up the connection required by the handler.
  Returns:
      HandlerStatusResponse
docstr_tok: ["Set","up","the","connection","required","by","the","handler",".","Returns",":","HandlerStatusResponse"]
code: def connect(self) -> StatusResponse:
      """
      Set up the connection required by the handler.
      Returns:
          HandlerStatusResponse
      """
  
      if self.is_connected is True:
          return self.connection
  
      self.connection = pinotdb.connect(
          host=self.connection_data["host"],
          port=self.connection_data["broker_port"],
          path=self.connection_data["path"],
          scheme=self.connection_data["scheme"],
          username=self.connection_data["username"],
          password=self.connection_data["password"],
          verify_ssl=json.loads(
              self.connection_data["verify_ssl"].lower()
          ),
      )
      self.is_connected = True
  
      return self.connection
  
imports: from typing import Optional
  from collections import OrderedDict
  import pandas
  import pinotdb
  import requests
  from requests.exceptions import InvalidSchema
  import json
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.integrations.libs.base import DatabaseHandler
  from pinotdb.sqlalchemy import PinotDialect
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 3 for calling the PinotHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self