'Helper function to add columns inside a Python script running in Redash in an easier way
Parameters:
:result dict: The result dict
:column_name string: Name of the column, which should be consisted of lowercase latin letters or underscore.
:friendly_name string: Name of the column for display
:column_type string: Type of the column. Check supported data types for details.'

@staticmethod
def add_result_column(result, column_name, friendly_name, column_type):

    if (column_type not in SUPPORTED_COLUMN_TYPES):
        raise Exception("'{0}'    is    not    a    supported    column    type".format(column_type))
    if ('columns' not in result):
        result['columns'] = []
    result['columns'].append({'name': column_name, 'friendly_name': friendly_name, 'type': column_type})
