@snippet
def table_reload(client, to_delete):
 DATASET_NAME = ('table_reload_dataset_%d' % (_millis(),))
 TABLE_NAME = ('table_reload_table_%d' % (_millis(),))
 dataset = client.dataset(DATASET_NAME)
 dataset.create()
 to_delete.append(dataset)
 table = dataset.table(TABLE_NAME, SCHEMA)
 table.friendly_name = ORIGINAL_FRIENDLY_NAME
 table.description = ORIGINAL_DESCRIPTION
 table.create()
 to_delete.insert(0, table)
 assert (table.friendly_name == ORIGINAL_FRIENDLY_NAME)
 assert (table.description == ORIGINAL_DESCRIPTION)
 table.friendly_name = LOCALLY_CHANGED_FRIENDLY_NAME
 table.description = LOCALLY_CHANGED_DESCRIPTION
 table.reload()
 assert (table.friendly_name == ORIGINAL_FRIENDLY_NAME)
 assert (table.description == ORIGINAL_DESCRIPTION)

@ snippet def table_reload ( client , to_delete ) : DATASET_NAME = ( 'table_reload_dataset_%d' % ( _millis ( ) , ) ) TABLE_NAME = ( 'table_reload_table_%d' % ( _millis ( ) , ) ) dataset = client . dataset ( DATASET_NAME ) dataset . create ( ) to_delete . append ( dataset ) table = dataset . table ( TABLE_NAME , SCHEMA ) table . friendly_name = ORIGINAL_FRIENDLY_NAME table . description = ORIGINAL_DESCRIPTION table . create ( ) to_delete . insert ( 0 , table ) assert ( table . friendly_name == ORIGINAL_FRIENDLY_NAME ) assert ( table . description == ORIGINAL_DESCRIPTION ) table . friendly_name = LOCALLY_CHANGED_FRIENDLY_NAME table . description = LOCALLY_CHANGED_DESCRIPTION table . reload ( ) assert ( table . friendly_name == ORIGINAL_FRIENDLY_NAME ) assert ( table . description == ORIGINAL_DESCRIPTION )
reload a tables metadata .