18 from __future__
import print_function
28 gcp_utils_dir = os.path.abspath(
29 os.path.join(os.path.dirname(__file__),
'../../gcp/utils'))
30 sys.path.append(gcp_utils_dir)
31 import big_query_utils
33 _PROJECT_ID =
'grpc-testing'
38 with open(os.path.dirname(__file__) +
'/scenario_result_schema.json',
40 table_schema = json.loads(f.read())
41 desc =
'Results of performance benchmarks.'
46 argp = argparse.ArgumentParser(
47 description=
'Patch schema of scenario results table.')
48 argp.add_argument(
'--bq_result_table',
52 help=
'Bigquery "dataset.table" to patch.')
54 args = argp.parse_args()
56 dataset_id, table_id = args.bq_result_table.split(
'.', 2)
59 print(
'Successfully patched schema of %s.\n' % args.bq_result_table)