{"record":{"id":"30ac5e9f84b38117","repo":"cube-js/cube","slug":"the-keybydatasource-cubejs-db-databricks-url","errorCode":null,"errorMessage":"The ${keyByDataSource('CUBEJS_DB_DATABRICKS_URL', dataSource)} is required and missing.","messagePattern":"The (.+?) is required and missing\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cubejs-backend-shared/src/env.ts","lineNumber":1079,"sourceCode":"      // It's true in schema-compiler integration tests\n      .default('false')\n      .asBool()\n  ),\n\n  /** ****************************************************************\n   * Databricks Driver                                               *\n   ***************************************************************** */\n\n  /**\n   * Databricks jdbc-connection url.\n   */\n  databricksUrl: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => {\n    const val = get(keyByDataSource('CUBEJS_DB_DATABRICKS_URL', dataSource, preAggregations)).asString();\n    if (!val) {\n      throw new Error(\n        `The ${\n          keyByDataSource('CUBEJS_DB_DATABRICKS_URL', dataSource)\n        } is required and missing.`\n      );\n    }\n    return val;\n  },\n\n  /**\n   * Databricks jdbc-connection token.\n   */\n  databricksToken: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => (\n    get(keyByDataSource('CUBEJS_DB_DATABRICKS_TOKEN', dataSource, preAggregations)).asString()\n  ),\n","sourceCodeStart":1061,"sourceCodeEnd":1097,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-shared/src/env.ts#L1061-L1097","documentation":"Required-config guard in env.ts databricksUrl: the Databricks JDBC connection URL environment variable (CUBEJS_DB_DATABRICKS_URL, per data source if suffixed) is empty or unset. It fires when the Databricks driver is used but its mandatory connection URL was never configured.","triggerScenarios":"Thrown at packages/cubejs-backend-shared/src/env.ts:1079 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set CUBEJS_DB_DATABRICKS_URL to your Databricks JDBC URL (e.g. databricks://host?httpPath=...).","If multiple data sources are used, set the suffixed variant CUBEJS_DB_DATABRICKS_URL_<dataSource>.","Verify the env file is actually loaded by the Cube process (correct directory, restart after changes)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}