orhankislal commented on code in PR #594: URL: https://github.com/apache/madlib/pull/594#discussion_r1114953481
########## src/ports/postgres/modules/graph/graph_utils.py_in: ########## @@ -74,14 +74,18 @@ def validate_output_and_summary_tables(model_out_table, module_name, "Graph WCC: Output table {0} already exists.".format(out_table)) def validate_graph_coding(vertex_table, vertex_id, edge_table, edge_params, - out_table, func_name, **kwargs): + out_table, func_name, warm_start = False, **kwargs): """ Validates graph tables (vertex and edge) as well as the output table. """ _assert(out_table and out_table.strip().lower() not in ('null', ''), - "Graph {func_name}: Invalid output table name!".format(**locals())) - _assert(not table_exists(out_table), - "Graph {func_name}: Output table already exists!".format(**locals())) + "Graph {func_name}: Invalid output table name!".format(**locals())) + if warm_start: + _assert(table_exists(out_table), Review Comment: We do it in the wcc specific function, this is generic graph utility. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@madlib.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org