class_docstr: This handler handles connection and execution of the Airtable statements.
docstr: Receive raw query and act upon it somehow.
  Args:
      query (str): query in native format
  Returns:
      HandlerResponse
docstr_tok: ["Receive","raw","query","and","act","upon","it","somehow",".","Args",":","query","(","str",")",":","query","in","native","format","Returns",":","HandlerResponse"]
code: def native_query(self, query: str) -> StatusResponse:
      """
      Receive raw query and act upon it somehow.
      Args:
          query (str): query in native format
      Returns:
          HandlerResponse
      """
  
      need_to_close = self.is_connected is False
  
      connection = self.connect()
  
      try:
          response = connection.sql.query(body={"query": query})
          records = response["rows"]
          columns = response["columns"]
  
          new_records = True
          while new_records:
              try:
                  if response["cursor"]:
                      response = connection.sql.query(
                          body={
                              "query": query,
                              "cursor": response["cursor"],
                          }
                      )
  
                      new_records = response["rows"]
                      records = records + new_records
              except Exception as e:
                  new_records = False
  
          if records:
              response = Response(
                  RESPONSE_TYPE.TABLE,
                  data_frame=pd.DataFrame(
                      records,
                      columns=[column["name"] for column in columns],
                  ),
              )
      except Exception as e:
          logger.error(
              f'Error running query: {query} on {self.connection_data["hosts"]}!'
          )
          response = Response(RESPONSE_TYPE.ERROR, error_message=str(e))
  
      if need_to_close is True:
          self.disconnect()
  
      return response
  
imports: from typing import Optional
  from collections import OrderedDict
  import pandas
  from elasticsearch import Elasticsearch
  from elasticsearch.exceptions import ConnectionError, AuthenticationException
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from es.elastic.sqlalchemy import ESDialect
  from mindsdb.integrations.libs.base import DatabaseHandler
  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 6 for calling the ElasticsearchHandler obj's underlying member method code with example usage: obj.native_query(query) and returns: response