graphistry.compute.validate package#

Submodules#

graphistry.compute.validate.validate_schema module#

Schema validation for GFQL chains without execution.

graphistry.compute.validate.validate_schema.validate_chain_schema(g, ops, collect_all=False)#

Validate chain operations against graph schema without executing.

This performs static analysis of the chain operations to detect: - References to non-existent columns - Type mismatches between filters and column types - Invalid predicate usage

Args:

g: The graph to validate against ops: Chain operations to validate collect_all: If True, collect all errors. If False, raise on first error.

Returns:

If collect_all=True: List of schema errors (empty if valid) If collect_all=False: None if valid

Raises:

GFQLSchemaError: If collect_all=False and validation fails

Parameters:
Return type:

List[GFQLSchemaError] | None

graphistry.compute.validate.validate_schema.validate_schema(self, g, collect_all=False)#

Validate this chain against a graph’s schema without executing.

Args:

g: Graph to validate against collect_all: If True, collect all errors. If False, raise on first.

Returns:

If collect_all=True: List of schema errors If collect_all=False: None if valid

Raises:

GFQLSchemaError: If collect_all=False and validation fails

Parameters:
Return type:

List[GFQLSchemaError] | None

Module contents#

Chain validation utilities.

graphistry.compute.validate.validate_chain_schema(g, ops, collect_all=False)#

Validate chain operations against graph schema without executing.

This performs static analysis of the chain operations to detect: - References to non-existent columns - Type mismatches between filters and column types - Invalid predicate usage

Args:

g: The graph to validate against ops: Chain operations to validate collect_all: If True, collect all errors. If False, raise on first error.

Returns:

If collect_all=True: List of schema errors (empty if valid) If collect_all=False: None if valid

Raises:

GFQLSchemaError: If collect_all=False and validation fails

Parameters:
Return type:

List[GFQLSchemaError] | None