Module Expr Str ImportFrom alias Import alias Import alias Import alias identifier FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str Str BinOpAdd Str NameLoad BinOpAdd Str NameLoad BinOpMult Call NameLoad NameLoad Num Str Dict Str Str BinOpMult Call NameLoad NameLoad Num BinOpMult Call NameLoad NameLoad Num ListLoad BinOpAdd BinOpAdd Str NameLoad Str BinOpAdd BinOpAdd Str NameLoad Str BinOpAdd BinOpAdd Str NameLoad Str decorator_list Assign NameStore BinOpBitOr NameLoad Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str Assign NameStore BinOpBitOr NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr BinOpBitOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad
N/A N/A A workflow that writes to a BigQuery table with nested and repeated fields.

Demonstrates how to build a bigquery.TableSchema object with nested and repeated
fields. Also, shows how to generate data to be written to a BigQuery table with
nested and repeated fields.
 __future__ absolute_import N/A argparse N/A logging N/A google.cloud.dataflow df run N/A N/A argv N/A None N/A N/A Run the workflow. N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument --output required True help Output BigQuery table for results specified as: PROJECT:DATASET.TABLE or DATASET.TABLE. N/A N/A known_args pipeline_args N/A N/A parser parse_known_args argv N/A p N/A N/A df Pipeline argv pipeline_args google.cloud.dataflow.internal.clients bigquery N/A table_schema N/A N/A bigquery TableSchema N/A kind_schema N/A N/A bigquery TableFieldSchema N/A N/A kind_schema name kind N/A N/A kind_schema type string N/A N/A kind_schema mode nullable N/A N/A N/A N/A table_schema fields append kind_schema N/A full_name_schema N/A N/A bigquery TableFieldSchema N/A N/A full_name_schema name fullName N/A N/A full_name_schema type string N/A N/A full_name_schema mode required N/A N/A N/A N/A table_schema fields append full_name_schema N/A age_schema N/A N/A bigquery TableFieldSchema N/A N/A age_schema name age N/A N/A age_schema type integer N/A N/A age_schema mode nullable N/A N/A N/A N/A table_schema fields append age_schema N/A gender_schema N/A N/A bigquery TableFieldSchema N/A N/A gender_schema name gender N/A N/A gender_schema type string N/A N/A gender_schema mode nullable N/A N/A N/A N/A table_schema fields append gender_schema N/A phone_number_schema N/A N/A bigquery TableFieldSchema N/A N/A phone_number_schema name phoneNumber N/A N/A phone_number_schema type record N/A N/A phone_number_schema mode nullable N/A area_code N/A N/A bigquery TableFieldSchema N/A N/A area_code name areaCode N/A N/A area_code type integer N/A N/A area_code mode nullable N/A N/A N/A N/A phone_number_schema fields append area_code N/A number N/A N/A bigquery TableFieldSchema N/A N/A number name number N/A N/A number type integer N/A N/A number mode nullable N/A N/A N/A N/A phone_number_schema fields append number N/A N/A N/A N/A table_schema fields append phone_number_schema N/A children_schema N/A N/A bigquery TableFieldSchema N/A N/A children_schema name children N/A N/A children_schema type string N/A N/A children_schema mode repeated N/A N/A N/A N/A table_schema fields append children_schema create_random_record N/A N/A record_id N/A N/A N/A N/A kind fullName age gender phoneNumber children N/A kind record_id N/A fullName record_id N/A N/A int record_id 10 male N/A areaCode number N/A N/A int record_id 100 N/A N/A int record_id 100000 N/A N/A N/A child record_id 1 N/A N/A child record_id 2 N/A N/A child record_id 3 N/A N/A record_ids N/A p N/A N/A df Create CreateIDs N/A 1 2 3 4 5 N/A records N/A record_ids N/A N/A df Map CreateRecords create_random_record N/A N/A records N/A N/A N/A df io Write write N/A N/A N/A df io BigQuerySink N/A known_args output schema table_schema create_disposition N/A N/A N/A df io BigQueryDisposition CREATE_IF_NEEDED write_disposition N/A N/A N/A df io BigQueryDisposition WRITE_TRUNCATE N/A N/A N/A p run N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A N/A logging getLogger setLevel N/A logging INFO N/A N/A run