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: Returns a list of entity columns.
  Args:
      table_name (str): name of one of tables returned by self.get_tables()
  Returns:
      HandlerResponse
docstr_tok: ["Returns","a","list","of","entity","columns",".","Args",":","table_name","(","str",")",":","name","of","one","of","tables","returned","by","self.get_tables","(",")","Returns",":","HandlerResponse"]
code: def get_columns(self, table_name: str) -> StatusResponse:
      """
      Returns a list of entity columns.
      Args:
          table_name (str): name of one of tables returned by self.get_tables()
      Returns:
          HandlerResponse
      """
  
      need_to_close = self.is_connected is False
  
      connection = self.connect()
      cursor = connection.cursor()
  
      try:
          query = f"SELECT * from {table_name} LIMIT 5"
          cursor.execute(query)
          cursor.fetchall()
  
          response = Response(
              RESPONSE_TYPE.TABLE,
              data_frame=pd.DataFrame(
                  [(x[0], x[1]) for x in cursor.description],
                  columns=["column_name", "data_type"],
              ),
          )
  
      except Exception as e:
          logger.error(
              f"Error running query: {query} on the Phoenix Query Server!"
          )
          response = Response(RESPONSE_TYPE.ERROR, error_message=str(e))
  
      cursor.close()
      if need_to_close is True:
          self.disconnect()
  
      return response
  
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 9 for calling the PhoenixHandler obj's underlying member method code with example usage: obj.get_columns(table_name) and returns: response