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: Initialize the handler.
  Args:
      name (str): name of particular handler instance
      connection_data (dict): parameters for connecting to the database
      **kwargs: arbitrary keyword arguments.
docstr_tok: ["Initialize","the","handler",".","Args",":","name","(","str",")",":","name","of","particular","handler","instance","connection_data","(","dict",")",":","parameters","for","connecting","to","the","database","*","*","kwargs",":","arbitrary","keyword","arguments","."]
code: def __init__(
      self, name: str, connection_data: Optional[dict], **kwargs
  ):
      """
      Initialize the handler.
      Args:
          name (str): name of particular handler instance
          connection_data (dict): parameters for connecting to the database
          **kwargs: arbitrary keyword arguments.
      """
      super().__init__(name)
      self.parser = parse_sql
      self.dialect = "phoenix"
  
      optional_parameters = [
          "max_retries",
          "autocommit",
          "auth",
          "authentication",
          "avatica_user",
          "avatica_password",
          "user",
          "password",
      ]
      for parameter in optional_parameters:
          if parameter not in connection_data:
              connection_data[parameter] = None
  
      self.connection_data = connection_data
      self.kwargs = kwargs
  
      self.connection = None
      self.is_connected = False
  
imports: from typing import Optional
  from collections import OrderedDict
  import pandas
  import phoenixdb
  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 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
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 1 to create a new PhoenixHandler object from inherited base classes: DatabaseHandler with example: obj = PhoenixHandler(name, connection_data)