Skip to content

How to influence the join path in a query? #438

@bentesha

Description

@bentesha

Given I have three cubes A, B, C, and D, which are related as follows:

A -> B -> D
A -> C -> D

In the query below, how does CubeJs determine the join path to D from A? Is there a way to hint that it goes through B and not C? Is there a way to hint this in a query without having to hack schema files?

{
  measures: ['D.total'],
  dimensions: ['A.id', 'A.name']
}

It seems that it is up to CubeJs to determine how to join cubes which could impact results significantly. Anything I am missing in the docs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementLEGACY. Use the Feature issue type insteadhelp wantedCommunity contributions are welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions