示例#1
0
def table_schema():
    table_schema = TableSchema()
    table_schema.fields = [
        table_field('total_score', 'INTEGER'),
        table_field('user', 'STRING')
    ]
    return table_schema
示例#2
0
 def filter_table_schema(self, include_fields=None):
     if include_fields is None:
         schema = self.table_schema
     else:
         schema = TableSchema()
         schema.fields = [field for field in self.table_schema.fields if field.name in include_fields]
     return 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
示例#4
0
def table_schema():
    """
    The schema of the table where we'll be writing the output data
    """
    table_schema = TableSchema()
    table_schema.fields = [
        table_field('data', 'STRING')
    ]
    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