class_docstr: This handler handles connection and execution of the Apache Phoenix statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Apache","Phoenix","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
  
      lindorm_connection_data = {
          "lindorm_user": self.connection_data["lindorm_user"],
          "lindorm_password": self.connection_data["lindorm_password"],
      }
  
      self.connection = phoenixdb.connect(
          url=self.connection_data["url"],
          autocommit=self.connection_data["autocommit"],
          **lindorm_connection_data,
      )
      self.is_connected = True
  
      return self.connection
  
imports: from typing import Optional
  import pandas
  import phoenixdb
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.integrations.libs.base import DatabaseHandler
  from pyphoenix.sqlalchemy_phoenix import PhoenixDialect
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
label_desc: Use image node_id 3 for calling the LindormHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self