-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
questionThe issue is a question. Please use Stack Overflow for questions.The issue is a question. Please use Stack Overflow for questions.
Description
Problem
I have cube A that is based on a BigQuery database, and cube B that is based on a Postgres database.
Both of these cubes have an id column, and I would like to be able to join them, so I can get and additional column from Postgres that I don't have in BigQuery. In the simplified example below, I would like to end up with a join that has columns for A.id, A.name, B.status (where A.id == B.id).
Is this possible? If so, could you please provide more detail on how to set it up?
I have tried to follow the example in https://cube.dev/docs/reference/data-model/pre-aggregations#rollup_join, but it doesn't quite apply, since I don't have any measures on which I would like to rollup.
Thank you!
Related Cube.js schema
cube(`A`, {
data_source: `bigquery`,
...
dimensions: {
id: {
sql: `id`,
type: `string`,
primaryKey: true,
public: true,
},
name: {
sql: `name`,
type: `string`,
},
}
})
cube(`B`, {
data_source: `postgres`,
...
dimensions: {
id: {
sql: `id`,
type: `string`,
primaryKey: true,
public: true,
},
status: {
sql: `status`,
type: `string`,
},
}
})Metadata
Metadata
Assignees
Labels
questionThe issue is a question. Please use Stack Overflow for questions.The issue is a question. Please use Stack Overflow for questions.