OmniSciDB  5ade3759e0
run-benchmark-import.py File Reference

Go to the source code of this file.

Namespaces

 run-benchmark-import
 

Functions

def run-benchmark-import.get_connection (kwargs)
 
def run-benchmark-import.json_format_handler (x)
 

Variables

 run-benchmark-import.parser = ArgumentParser()
 
 run-benchmark-import.optional = parser._action_groups.pop()
 
 run-benchmark-import.required = parser.add_argument_group("required arguments")
 
 run-benchmark-import.action
 
 run-benchmark-import.help
 
 run-benchmark-import.dest
 
 run-benchmark-import.default
 
 run-benchmark-import.type
 
 run-benchmark-import.True
 
 run-benchmark-import.args = parser.parse_args()
 
 run-benchmark-import.level
 
 run-benchmark-import.source_db_user = args.user
 
 run-benchmark-import.source_db_passwd = args.passwd
 
 run-benchmark-import.source_db_server = args.server
 
 run-benchmark-import.source_db_port = args.port
 
 run-benchmark-import.source_db_name = args.name
 
 run-benchmark-import.label = args.label
 
 run-benchmark-import.import_file = args.import_file
 
 run-benchmark-import.table_schema_file = args.table_schema_file
 
 run-benchmark-import.import_table_name = args.import_table_name
 
 run-benchmark-import.import_query_template_file = args.import_query_template_file
 
 run-benchmark-import.no_drop_table_before = args.no_drop_table_before
 
 run-benchmark-import.no_drop_table_after = args.no_drop_table_after
 
 run-benchmark-import.import_test_name = args.import_test_name
 
 run-benchmark-import.machine_name = args.machine_name
 
 run-benchmark-import.machine_uname = args.machine_uname
 
 run-benchmark-import.destinations = args.destination.split(",")
 
bool run-benchmark-import.valid_destination_set = True
 
 run-benchmark-import.dest_db_user = args.dest_user
 
 run-benchmark-import.dest_db_passwd = args.dest_passwd
 
 run-benchmark-import.dest_db_server = args.dest_server
 
 run-benchmark-import.dest_db_port = args.dest_port
 
 run-benchmark-import.dest_db_name = args.dest_name
 
 run-benchmark-import.dest_table = args.dest_table
 
 run-benchmark-import.dest_table_schema_file = args.dest_table_schema_file
 
 run-benchmark-import.output_file_json = args.output_file_json
 
 run-benchmark-import.output_file_jenkins = args.output_file_jenkins
 
def run-benchmark-import.con
 
 run-benchmark-import.run_guid = str(uuid.uuid4())
 
 run-benchmark-import.run_timestamp = datetime.datetime.now()
 
 run-benchmark-import.run_connection = str(con)
 
string run-benchmark-import.run_driver = ""
 
def run-benchmark-import.run_version = con._client.get_version()
 
def run-benchmark-import.run_version_short = run_version.split("-")[0]
 
 run-benchmark-import.conn_machine_name = re.search(r"@(.*?):", run_connection).group(1)
 
 run-benchmark-import.local_uname = os.uname()
 
 run-benchmark-import.run_machine_name = machine_name
 
 run-benchmark-import.run_machine_uname = machine_uname
 
 run-benchmark-import.create_table_sql = table_schema.read().replace("\n", " ")
 
def run-benchmark-import.res = con.execute(create_table_sql)
 
 run-benchmark-import.import_query = import_query_template.read().replace("\n", " ")
 
 run-benchmark-import.start_time = timeit.default_timer()
 
 run-benchmark-import.end_time = timeit.default_timer()
 
 run-benchmark-import.query_elapsed_time = round(((end_time - start_time) * 1000), 1)
 
def run-benchmark-import.execution_time = res._result.execution_time_ms
 
 run-benchmark-import.connect_time = round((query_elapsed_time - execution_time), 2)
 
 run-benchmark-import.res_output = str(res.fetchall()[0])
 
 run-benchmark-import.rows_loaded = re.search(r"Loaded: (.*?) recs, R", res_output).group(1)
 
 run-benchmark-import.rows_rejected = re.search(r"Rejected: (.*?) recs i", res_output).group(1)
 
dictionary run-benchmark-import.result
 
 run-benchmark-import.result_json = json.dumps(result, default=json_format_handler, indent=2)
 
 run-benchmark-import.results_df = pandas.DataFrame(result, index=[0])
 
def run-benchmark-import.dest_con
 
def run-benchmark-import.tables = dest_con.get_tables()
 
 run-benchmark-import.method
 
 run-benchmark-import.create
 
 run-benchmark-import.file_json_open = open(output_file_json, "w")
 
 run-benchmark-import.jenkins_bench_json
 
 run-benchmark-import.file_jenkins_open = open(output_file_jenkins, "w")