gigl.analytics.graph_validation.bq_graph_validator#
Attributes#
Classes#
Module Contents#
- class gigl.analytics.graph_validation.bq_graph_validator.BQGraphValidator[source]#
- static does_edge_table_have_dangling_edges(edge_table, src_node_column_name, dst_node_column_name, query_labels={}, bq_gcp_project=None)[source]#
Validate that the edge table does not contain any dangling edges. Meaining that an edge exists where either src_node and/or dst_node is null
- Parameters:
edge_table (str) – The edge table to validate
src_node_column_name (str) – The column name in the table that contains the source node ids
dst_node_column_name (str) – The column name in the table that contains the destination node ids
query_labels (Dict[str, str], optional) – Cloud Provider Labels to add to the Query. Defaults to {}.
bq_gcp_project (Optional[str], optional) – The GCP project to run the query in. If None the BQ client will usse the default project inferred from the environment. Defaults to None.
- Returns:
True if the edge table has no dangling edges, False otherwise
- Return type:
bool