@snippet
def client_run_sync_query(client, _):
 LIMIT = 100
 LIMITED = ('%s LIMIT %d' % (QUERY, LIMIT))
 TIMEOUT_MS = 1000
 query = client.run_sync_query(LIMITED)
 query.timeout_ms = TIMEOUT_MS
 query.run()
 assert query.complete
 assert (len(query.rows) == LIMIT)
 assert ([field.name for field in query.schema] == ['name'])

@ snippet def client_run_sync_query ( client , _ ) : LIMIT = 100 LIMITED = ( '%s LIMIT %d' % ( QUERY , LIMIT ) ) TIMEOUT_MS = 1000 query = client . run_sync_query ( LIMITED ) query . timeout_ms = TIMEOUT_MS query . run ( ) assert query . complete assert ( len ( query . rows ) == LIMIT ) assert ( [ field . name for field in query . schema ] == [ 'name' ] )
run a synchronous query .