class_docstr: This handler handles connection and execution of the SAP SQL Anywhere statements.
docstr: Receive SQL query and runs it
  :param query: The SQL query to run in SAP SQL Anywhere
  :return: returns the records from the current recordset
docstr_tok: ["Receive","SQL","query","and","runs","it",":","param","query",":","The","SQL","query","to","run","in","SAP","SQL","Anywhere",":","return",":","returns","the","records","from","the","current","recordset"]
code: def native_query(self, query: str) -> Response:
      """
      Receive SQL query and runs it
      :param query: The SQL query to run in SAP SQL Anywhere
      :return: returns the records from the current recordset
      """
  
      need_to_close = self.is_connected is False
  
      connection = self.connect()
      cur = connection.cursor()
      try:
          cur.execute(query)
          if not cur.description:
              response = Response(RESPONSE_TYPE.OK)
          else:
              result = cur.fetchall()
              response = Response(
                  RESPONSE_TYPE.TABLE,
                  DataFrame(
                      result, columns=[x[0] for x in cur.description]
                  ),
              )
          connection.commit()
      except Exception as e:
          logger.error(
              f"Error running query: {query} on {self.connection}!"
          )
          response = Response(
              RESPONSE_TYPE.ERROR, error_code=0, error_message=str(e)
          )
          connection.rollback()
  
      if need_to_close is True:
          self.disconnect()
  
      return response
  
imports: from textwrap import dedent
  from collections import OrderedDict
  from pandas import DataFrame
  import sqlanydb
  import sqlalchemy_sqlany.base
  from mindsdb_sql import parse_sql
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import DatabaseHandler
  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 SQLAnyHandler obj's underlying member method code with example usage: obj.native_query(query) and returns: response