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"]
code: def __init__(self, name, connection_data, **kwargs):
      super().__init__(name)
      self.parser = parse_sql
      self.connection_data = connection_data
      """
          service_name = kwargs.get('service_name')
          self.config_file_name = kwargs.get('config_file_name')
          self.trino_config_provider = TrinoConfigProvider(config_file_name=self.config_file_name)
          self.kerberos_config = self.trino_config_provider.get_trino_kerberos_config()
          self.http_scheme = self.kerberos_config['http_scheme']
          self.dialect = self.kerberos_config['dialect']
          config = self.kerberos_config['config']
          hostname_override = self.kerberos_config['hostname_override']
          principal = f"{kwargs.get('user')}@{hostname_override}"
          ca_bundle = self.kerberos_config['ca_bundle']
          self.auth_config = KerberosAuthentication(config=config,
                                                    service_name=service_name,
                                                    principal=principal,
                                                    ca_bundle=ca_bundle,
                                                    hostname_override=hostname_override)
          """
      self.connection = None
      self.is_connected = False
      self.with_clause = ""
  
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 1 to create a new TrinoHandler object from inherited base classes: DatabaseHandler with example: obj = TrinoHandler(name, connection_data)