gadsme / charts

Gadsme Helm chart repository
Apache License 2.0
44 stars 25 forks source link

_env.tpl checks for wrong db type when using Databricks #25

Closed maurice-freitag closed 1 year ago

maurice-freitag commented 1 year ago

When connecting to Databricks, CUBEJS_DB_TYPE should be set to databricks-jdbc as per the Cube docs. The helper template checks for databricks however:

{{- if eq $i.type "databricks" }}
{{- include "cube.env.database.databricks" (set $i "datasource" $e) }}
{{- end }}

Using databricks is of course not supported by Cube:

Error: Unsupported db type: databricks
    at driverDependencies (/cube/node_modules/@cubejs-backend/server-core/src/core/DriverResolvers.ts:24:9)
    at lookupDriverClass (/cube/node_modules/@cubejs-backend/server-core/src/core/DriverResolvers.ts:36:23)
    at OptsHandler.getDriverConcurrency (/cube/node_modules/@cubejs-backend/server-core/src/core/OptsHandler.ts:276:48)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Object.queueOptions (/cube/node_modules/@cubejs-backend/server-core/src/core/OptsHandler.ts:311:34)
    at Function.getDriverMaxPool (/cube/node_modules/@cubejs-backend/server-core/src/core/DriverResolvers.ts:79:31)
    at CubejsServerCore.resolveDriver (/cube/node_modules/@cubejs-backend/server-core/src/core/server.ts:814:13)
    at /cube/node_modules/@cubejs-backend/server-core/src/core/server.ts:579:22
    at OrchestratorApi.testDriverConnection (/cube/node_modules/@cubejs-backend/server-core/src/core/OrchestratorApi.ts:206:24)
    at async Promise.all (index 0)
    at ApiGateway.readiness (/cube/node_modules/@cubejs-backend/api-gateway/src/gateway.ts:2193:9)
    at /cube/node_modules/@cubejs-backend/api-gateway/src/cached-handler.ts:58:9
lvauvillier commented 1 year ago

Thanks @maurice-freitag. PR Merged.