class_docstr: This handler handles connection and execution of the Trino statements
  
  kerberos is not implemented yet
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Trino","statements","kerberos","is","not","implemented","yet"]
docstr: Receive SQL query and runs it
  :param query: The SQL query to run in Trino
  :return: returns the records from the current recordset
docstr_tok: ["Receive","SQL","query","and","runs","it",":","param","query",":","The","SQL","query","to","run","in","Trino",":","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 Trino
      :return: returns the records from the current recordset
      """
      try:
          connection = self.connect()
          cur = connection.cursor()
          result = cur.execute(query)
          if result and cur.description:
              response = Response(
                  RESPONSE_TYPE.TABLE,
                  data_frame=pd.DataFrame(
                      result, columns=[x[0] for x in cur.description]
                  ),
              )
          else:
              response = Response(RESPONSE_TYPE.OK)
          connection.commit()
      except Exception as e:
          logger.error(
              f'Error connecting to Trino {self.connection_data["schema"]}, {e}!'
          )
          response = Response(RESPONSE_TYPE.ERROR, error_message=str(e))
      return response
  
imports: import re
  from typing import Dict
  import pandas
  from pyhive import trino, sqlalchemy_trino
  from mindsdb_sql import parse_sql, ASTNode
  from trino.auth import KerberosAuthentication, BasicAuthentication
  from trino.dbapi import connect
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from .trino_config_provider import TrinoConfigProvider
label_desc: Use image node_id 4 for calling the TrinoHandler obj's underlying member method code with example usage: obj.native_query(query) and returns: response