cube-js / cube-js/cube

Can't find dialect for 'datasource1' data source: undefined

Open
#6,890 8 comments 3 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
I have 2 datasources im trying to access from the same cube instance, the default datasource works as expected(in my case big query), once i configure and try to access the second datasource(in my case postgres) i get the following error:
Can't find dialect for 'datasource1' data source: undefined

**To Reproduce**
Steps to reproduce the behavior:
Configuring more then 1 (non default datasource) datasource leads to unknown dialect.
in my case the default is big query and the second data source is postgres configured as follows:
```
CUBEJS_DB_BQ_PROJECT_ID=******************************
CUBEJS_DB_BQ_CREDENTIALS=******************************
CUBEJS_DB_TYPE=bigquery
CUBEJS_REFRESH_WORKER=false
CUBEJS_DATASOURCES=default,datasource1
CUBEJS_DS_datasource1_DB_TYPE=postgres
CUBEJS_DS_datasource1_DB_HOST=******************************
CUBEJS_DS_datasource1_DB_NAME=******************************
CUBEJS_DS_datasource1_DB_USER=******************************
CUBEJS_DS_datasource1_DB_PASS=******************************
```

**Expected behavior**
dialect(afaik postgres) is configured so i would expect the query to run as correctly

**Screenshots**
If applicable, add screenshots to help explain your problem.
image
image

**Version:**
0.33.35

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.