{"record":{"id":"1d7e801241a8d97e","repo":"cube-js/cube","slug":"the-cubejs-db-bq-export-bucket-is-deprecated-plea","errorCode":null,"errorMessage":"The CUBEJS_DB_BQ_EXPORT_BUCKET is deprecated. Please, use the CUBEJS_DB_EXPORT_BUCKET instead.","messagePattern":"The CUBEJS_DB_BQ_EXPORT_BUCKET is deprecated\\. Please, use the CUBEJS_DB_EXPORT_BUCKET instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/cubejs-backend-shared/src/env.ts","lineNumber":1269,"sourceCode":"  /**\n   * BigQuery location.\n   */\n  bigqueryLocation: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => (\n    get(keyByDataSource('CUBEJS_DB_BQ_LOCATION', dataSource, preAggregations)).asString()\n  ),\n\n  /**\n   * BigQuery export bucket.\n   * @deprecated\n   */\n  bigqueryExportBucket: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => {\n    console.warn(\n      'The CUBEJS_DB_BQ_EXPORT_BUCKET is deprecated. ' +\n      'Please, use the CUBEJS_DB_EXPORT_BUCKET instead.'\n    );\n    return get(keyByDataSource('CUBEJS_DB_BQ_EXPORT_BUCKET', dataSource, preAggregations)).asString();\n  },\n\n  /** ****************************************************************\n   * ClickHouse Driver                                               *\n   ***************************************************************** */\n\n  /**\n   * ClickHouse read only flag.\n   */\n  clickhouseReadOnly: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => (\n    get(keyByDataSource('CUBEJS_DB_CLICKHOUSE_READONLY', dataSource, preAggregations))","sourceCodeStart":1251,"sourceCodeEnd":1287,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-shared/src/env.ts#L1251-L1287","documentation":"The BigQuery export bucket variable CUBEJS_DB_BQ_EXPORT_BUCKET was superseded by the generic CUBEJS_DB_EXPORT_BUCKET, which works across drivers. Reading the deprecated var triggers this warning; the value is still returned.","triggerScenarios":"bigqueryExportBucket env accessor is called (during BigQuery pre-aggregation export configuration) and CUBEJS_DB_BQ_EXPORT_BUCKET is set in the environment.","commonSituations":"Older BigQuery pre-aggregation export setups upgraded to newer Cube; docs/configs from before the unified export-bucket variable existed.","solutions":["Set CUBEJS_DB_EXPORT_BUCKET instead of CUBEJS_DB_BQ_EXPORT_BUCKET","Remove the deprecated variable once the new one is confirmed","Re-run export-based pre-aggregations to verify uploads still target the expected bucket"],"exampleFix":"// before\nCUBEJS_DB_BQ_EXPORT_BUCKET=my-export-bucket\n// after\nCUBEJS_DB_EXPORT_BUCKET=my-export-bucket","handlingStrategy":"validation","validationCode":"if (process.env.CUBEJS_DB_BQ_EXPORT_BUCKET) console.warn('Use CUBEJS_DB_EXPORT_BUCKET instead of deprecated CUBEJS_DB_BQ_EXPORT_BUCKET');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use the driver-agnostic CUBEJS_DB_EXPORT_BUCKET","Review BigQuery pre-aggregation export setup after upgrades","Remove deprecated vars once replaced"],"tags":["env","deprecation","bigquery","pre-aggregations"],"backgroundTag":"deprecated-env-var","analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}