Skip to content

Trigger rebuild of specific partitions of partitioned pre-aggregations using the Orchestration APIΒ #6722

@siamak-haschemi

Description

@siamak-haschemi

Is your feature request related to a problem? Please describe.

We want to trigger rebuild of specific partitions of partitioned pre-aggregations using the Orchestrator API.

Describe the solution you'd like

Extend the cubejs-api/v1/pre-aggregations/jobs endpoint, so that selector.preAggregations is an object which accepts a list of patitions:

Example:

"selector": {
      "contexts": [{ "securityContext": {} }],
      "timezones": ["UTC"],
      "preAggregations": [
          {
                "name":"orders.main",
                "partitions": [....]
          }
    }

Describe alternatives you've considered

There is no real alternative to build specific partitions.

Additional context

In our pipeline (DBT), we have the knowledge about which partition became stale, so that cube has to rebuild the pre-aggregation cache for this specific partition.

Metadata

Metadata

Assignees

Labels

api:orchestrationIssues related to Orchestration APIenhancementLEGACY. Use the Feature issue type insteadhelp wantedCommunity contributions are welcome.pre-aggregationsIssues related to pre-aggregations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions