{"record":{"id":"64a6839d693ef39a","repo":"cube-js/cube","slug":"the-cubejs-db-catalog-is-deprecated-please-use-t","errorCode":null,"errorMessage":"The CUBEJS_DB_CATALOG is deprecated. Please, use the CUBEJS_DB_PRESTO_CATALOG instead.","messagePattern":"The CUBEJS_DB_CATALOG is deprecated\\. Please, use the CUBEJS_DB_PRESTO_CATALOG instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/cubejs-backend-shared/src/env.ts","lineNumber":1674,"sourceCode":"          } must be either 'true' or 'false'.`\n        );\n      }\n    } else {\n      return false;\n    }\n  },\n  /** ****************************************************************\n   * Presto Driver                                                   *\n   ***************************************************************** */\n\n  /**\n   * Presto catalog.\n   */\n  dbCatalog: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => {\n    console.warn(\n      'The CUBEJS_DB_CATALOG is deprecated. ' +\n      'Please, use the CUBEJS_DB_PRESTO_CATALOG instead.'\n    );\n    return get(keyByDataSource('CUBEJS_DB_CATALOG', dataSource, preAggregations)).asString();\n  },\n\n  /** ****************************************************************\n   * duckdb                                                         *\n   ***************************************************************** */\n\n  duckdbMotherDuckToken: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => (\n    get(keyByDataSource('CUBEJS_DB_DUCKDB_MOTHERDUCK_TOKEN', dataSource, preAggregations)).asString()\n  ),\n\n  duckdbDatabasePath: ({","sourceCodeStart":1656,"sourceCodeEnd":1692,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-shared/src/env.ts#L1656-L1692","documentation":"A deprecation warning printed while resolving the Presto catalog: the environment still sets CUBEJS_DB_CATALOG, whose role is now served by the data-source-scoped CUBEJS_DB_PRESTO_CATALOG. The old variable is still honored for backward compatibility, so this is only a migration notice, not a failure.","triggerScenarios":"dbCatalog env accessor is invoked (when configuring a Presto/Trino datasource, including suffixed per-datasource variants) and CUBEJS_DB_CATALOG is defined.","commonSituations":"Old Presto driver configurations; multi-datasource setups with CUBEJS_DB_CATALOG_<DS>; docs from before the Presto-specific rename.","solutions":["Replace CUBEJS_DB_CATALOG with CUBEJS_DB_PRESTO_CATALOG (suffixed variants likewise)","Remove the deprecated variable after verifying the new one applies","Restart Cube and confirm the catalog resolves correctly in queries"],"exampleFix":"// before\nCUBEJS_DB_CATALOG=hive\n// after\nCUBEJS_DB_PRESTO_CATALOG=hive","handlingStrategy":"validation","validationCode":"if (process.env.CUBEJS_DB_CATALOG) console.warn('Use CUBEJS_DB_PRESTO_CATALOG instead of deprecated CUBEJS_DB_CATALOG');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use driver-prefixed env vars (CUBEJS_DB_PRESTO_CATALOG) for Presto/Trino","Check per-datasource suffixed variants too","Validate catalog names resolve in Presto after migration"],"tags":["env","deprecation","presto","config"],"backgroundTag":"deprecated-env-var","analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}