Functions | |
def | create_big_query () |
def | create_dataset (biq_query, project_id, dataset_id) |
def | create_partitioned_table (big_query, project_id, dataset_id, table_id, table_schema, description, partition_type='DAY', expiration_ms=_EXPIRATION_MS) |
def | create_table (big_query, project_id, dataset_id, table_id, table_schema, description) |
def | create_table2 (big_query, project_id, dataset_id, table_id, fields_schema, description, partition_type=None, expiration_ms=None) |
def | insert_rows (big_query, project_id, dataset_id, table_id, rows_list) |
def | make_row (unique_row_id, row_values_dict) |
def | patch_table (big_query, project_id, dataset_id, table_id, fields_schema) |
def | sync_query_job (big_query, project_id, query, timeout=5000) |
Variables | |
int | _EXPIRATION_MS = 30 * 24 * 60 * 60 * 1000 |
int | NUM_RETRIES = 3 |
def benchmarks.util.big_query_utils.create_big_query | ( | ) |
Authenticates with cloud platform and gets a BiqQuery service object
Definition at line 18 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.create_dataset | ( | biq_query, | |
project_id, | |||
dataset_id | |||
) |
Definition at line 26 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.create_partitioned_table | ( | big_query, | |
project_id, | |||
dataset_id, | |||
table_id, | |||
table_schema, | |||
description, | |||
partition_type = 'DAY' , |
|||
expiration_ms = _EXPIRATION_MS |
|||
) |
Creates a partitioned table. By default, a date-paritioned table is created with each partition lasting 30 days after it was last modified.
Definition at line 61 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.create_table | ( | big_query, | |
project_id, | |||
dataset_id, | |||
table_id, | |||
table_schema, | |||
description | |||
) |
Definition at line 50 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.create_table2 | ( | big_query, | |
project_id, | |||
dataset_id, | |||
table_id, | |||
fields_schema, | |||
description, | |||
partition_type = None , |
|||
expiration_ms = None |
|||
) |
Definition at line 81 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.insert_rows | ( | big_query, | |
project_id, | |||
dataset_id, | |||
table_id, | |||
rows_list | |||
) |
Definition at line 152 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.make_row | ( | unique_row_id, | |
row_values_dict | |||
) |
row_values_dict is a dictionary of column name and column value.
Definition at line 186 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.patch_table | ( | big_query, | |
project_id, | |||
dataset_id, | |||
table_id, | |||
fields_schema | |||
) |
Definition at line 124 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
def benchmarks.util.big_query_utils.sync_query_job | ( | big_query, | |
project_id, | |||
query, | |||
timeout = 5000 |
|||
) |
Definition at line 172 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
|
private |
Definition at line 14 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.
int benchmarks.util.big_query_utils.NUM_RETRIES = 3 |
Definition at line 15 of file third_party/bloaty/third_party/protobuf/benchmarks/util/big_query_utils.py.