{"record":{"id":"3970cc6357c04c8b","repo":"cube-js/cube","slug":"unsupported-export-bucket-type-this-config-buck","errorCode":null,"errorMessage":"Unsupported export bucket type: ${this.config.bucketType}","messagePattern":"Unsupported export bucket type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts","lineNumber":773,"sourceCode":"    }\n\n    return DatabricksToGenericType[columnType.toLowerCase()] || super.toGenericType(columnType, precision, scale);\n  }\n\n  /**\n   * Determines whether export bucket feature is configured or not.\n   */\n  public async isUnloadSupported() {\n    return this.config.exportBucket !== undefined;\n  }\n\n  /**\n   * Returns to the Cubestore an object with links to unloaded to an\n   * export bucket data.\n   */\n  public async unload(tableName: string, options: UnloadOptions) {\n    if (!SUPPORTED_BUCKET_TYPES.includes(this.config.bucketType as string)) {\n      throw new Error(`Unsupported export bucket type: ${\n        this.config.bucketType\n      }`);\n    }\n    const tableFullName = `${\n      this.config.catalog\n        ? `${this.config.catalog}.`\n        : ''\n    }${tableName}`;\n    const types = options.query\n      ? await this.unloadWithSql(\n        tableFullName,\n        options.query.sql,\n        options.query.params,\n      )\n      : await this.unloadWithTable(tableFullName);\n    const csvFile = await this.getCsvFiles(tableFullName);\n    return {\n      exportBucketCsvEscapeSymbol: this.config.exportBucketCsvEscapeSymbol,","sourceCodeStart":755,"sourceCodeEnd":791,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts#L755-L791","documentation":"unload (used by Cube Store to export query results to a bucket) validates the configured bucketType against SUPPORTED_BUCKET_TYPES and throws immediately if it is unsupported. The Databricks driver only supports the export bucket types it has extraction code for (e.g. S3, Azure, GCS).","triggerScenarios":"A pre-aggregation unload runs while this.config.bucketType is undefined or set to a value not in SUPPORTED_BUCKET_TYPES.","commonSituations":"Missing exportBucket configuration in cube.js; typo'd bucketType (e.g. 'gcs' vs 'gs' or 'azure-blob'); using an unsupported store like MinIO/local bucket.","solutions":["Set exportBucket.type in cube.js to a supported value (check SUPPORTED_BUCKET_TYPES in the driver, e.g. s3, azure, gcs)","Fix typos in bucketType and make sure the matching credentials block (s3Credentials/azureCredentials/gcsCredentials) is present","Verify the cube.js version supports your desired bucket type; upgrade if the type was added later"],"exampleFix":"// before\nexportBucket: { type: 'google' }\n// after\nexportBucket: { type: 'gcs', gcsCredentials: { credentials: {...} } }","handlingStrategy":"validation","validationCode":"const SUPPORTED = ['s3','azure','gcs']; // check SUPPORTED_BUCKET_TYPES for your driver version\nconst bucketType = conf.exportBucket?.type;\nif (!SUPPORTED.includes(bucketType)) throw new Error(`exportBucket.type '${bucketType}' not supported by databricks driver`);","typeGuard":null,"tryCatchPattern":"try {\n  await driver.unload(tableName, options);\n} catch (e) {\n  if (e.message.startsWith('Unsupported export bucket type')) {\n    // correct exportBucket config and restart orchestrator\n  }\n  throw e;\n}","preventionTips":["Validate cube.js schema/config against the driver's supported bucket types at startup","Copy exportBucket config from official examples, keeping exact casing","Test pre-aggregation unloads in staging before production"],"tags":["configuration","export-bucket","pre-aggregation"],"backgroundTag":"unsupported-bucket-type","analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}