def METHOD_NAME(self):
    if self.is_connected is True:
        return self.connection
    config = {
        'host': self.connection_data.get('host'),
        'port': self.connection_data.get('port'),
        'auth': self.connection_data.get('auth', 'CUSTOM'),
        'username': self.connection_data.get('user'),
        'password': self.connection_data.get('password'),
        'database': self.connection_data.get('database')
    }
    connection = hive.Connection(**config)
    self.is_connected = True
    self.connection = connection
    return self.connection