Exemple #1
0
def table_schema():
    table_schema = TableSchema()
    table_schema.fields = [
        table_field('total_score', 'INTEGER'),
        table_field('user', 'STRING')
    ]
    return table_schema
def table_schema():
    table_schema = TableSchema()
    table_schema.fields = [
        table_field('team', 'STRING'),
        table_field('total_score', 'INTEGER'),
        table_field('window_start', 'TIMESTAMP')
    ]
    return table_schema
def table_schema():
    """
    The schema of the table where we'll be writing the output data
    """
    table_schema = TableSchema()
    table_schema.fields = [
        table_field('team', 'STRING'),
        table_field('total_score', 'INTEGER'),
        table_field('window_start', 'TIMESTAMP')
    ]
    return table_schema