Skip to content

Query Planners

amsdal_glue.planners.DefaultSchemaQueryPlanner

Bases: SchemaQueryPlanner

DefaultSchemaQueryPlanner is responsible for planning schema queries by creating a chain of tasks that execute schema queries. It extends the SchemaQueryPlanner class.

plan_schema_query

plan_schema_query(filters=None)

Plans the execution of a schema query by creating a chain of tasks.

Parameters:

Name Type Description Default
filters Conditions | None

The conditions to filter the schema query.

None

Returns:

Name Type Description
ChainTask ChainTask

A chain of tasks that execute the schema query.

amsdal_glue.planners.DefaultDataQueryPlanner

Bases: DefaultDataQueryPlannerMixin, DataQueryPlanner

DefaultDataQueryPlanner is responsible for planning data queries by creating a chain of tasks that execute data queries. It extends the DataQueryPlanner class.

plan_data_query

plan_data_query(query)

Plans the execution of a data query by creating a chain of tasks.

Parameters:

Name Type Description Default
query QueryStatement

The data query statement to be executed.

required

Returns:

Name Type Description
ChainTask ChainTask

A chain of tasks that execute the data query.