Github user njayaram2 commented on a diff in the pull request:

    https://github.com/apache/incubator-madlib/pull/113#discussion_r111604232
  
    --- Diff: src/ports/postgres/modules/graph/sssp.py_in ---
    @@ -85,47 +130,91 @@ def graph_sssp(schema_madlib, vertex_table, vertex_id, 
edge_table,
                local_distribution = m4_ifdef(<!__POSTGRESQL__!>, <!''!>,
                        <!"DISTRIBUTED BY (id)"!>)
     
    -           validate_sssp(vertex_table, vertex_id, edge_table,
    -                   edge_params, source_vertex, out_table)
    +           is_hawq = m4_ifdef(<!__HAWQ__!>, <!True!>, <!False!>)
    +           _validate_sssp(vertex_table, vertex_id, edge_table,
    +                   edge_params, source_vertex, out_table, glist)
     
                plpy.execute(" DROP TABLE IF EXISTS {0},{1},{2}".format(
                        message,oldupdate,newupdate))
     
    +           # Initialize grouping related variables
    +           comma_grp = ""
    +           comma_grp_e = ""
    +           comma_grp_m = ""
    +           grp_comma = ""
    +           checkg_oo = ""
    +           checkg_eo = ""
    +           checkg_ex = ""
    +           checkg_om = ""
    +           group_by = ""
    +
    +           if grouping_cols is not None:
    +                   comma_grp = " , " + grouping_cols
    +                   group_by = " , " + _grp_from_table(edge_table,glist)
    +                   comma_grp_e = " , " + _grp_from_table(edge_table,glist)
    +                   comma_grp_m = " , " + _grp_from_table("message",glist)
    +                   grp_comma = grouping_cols + " , "
    +
    +                   checkg_oo_sub = 
_check_groups(out_table,"oldupdate",glist)
    +                   checkg_oo = " AND " + checkg_oo_sub
    +                   checkg_eo = " AND " + 
_check_groups(edge_table,"oldupdate",glist)
    +                   checkg_ex = " AND " + 
_check_groups(edge_table,"x",glist)
    +                   checkg_om = " AND " + 
_check_groups("out_table","message",glist)
    +
    +           w_type = get_expr_type(weight,edge_table).lower()
    +           init_w = INT_MAX
    +           if w_type in ['double precision','float8']:
    +                   init_w = INFINITY
    +
                # We keep a table of every vertex, the minimum cost to that 
destination
                # seen so far and the parent to this vertex in the associated 
shortest
                # path. This table will be updated throughtout the execution.
                plpy.execute(
    --- End diff --
    
    throughtout -> throughout


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to