{"record":{"id":"a93b8fdcb3296857","repo":"cube-js/cube","slug":"unsupported-export-bucket-type","errorCode":null,"errorMessage":"Unsupported export bucket type.","messagePattern":"Unsupported export bucket type\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts","lineNumber":740,"sourceCode":"        optionsToExport.CREDENTIALS = `(AWS_KEY_ID = '${conf.keyId}' AWS_SECRET_KEY = '${conf.secretKey}')`;\n      }\n    } else if (bucketType === 'gcs') {\n      optionsToExport.STORAGE_INTEGRATION = (\n        <SnowflakeDriverExportGCS> this.config.exportBucket\n      ).integrationName;\n    } else if (bucketType === 'azure') {\n      // @see https://docs.snowflake.com/en/sql-reference/sql/copy-into-location\n      // @see https://docs.snowflake.com/en/user-guide/data-unload-azure\n      const conf = <SnowflakeDriverExportAzure> this.config.exportBucket;\n\n      // Storage integration export flow takes precedence over direct auth if it is defined\n      if (conf.integrationName) {\n        optionsToExport.STORAGE_INTEGRATION = conf.integrationName;\n      } else {\n        optionsToExport.CREDENTIALS = `(AZURE_SAS_TOKEN = '${conf.sasToken}')`;\n      }\n    } else {\n      throw new Error('Unsupported export bucket type.');\n    }\n    const clause = Object.entries(optionsToExport)\n      .map(([key, value]) => `${key} = ${value}`)\n      .join(' ');\n    return clause;\n  }\n\n  /**\n   * Returns an array of signed URLs of the unloaded csv files.\n   */\n  private async getCsvFiles(tableName: string): Promise<string[]> {\n    const { bucketType } =\n      <SnowflakeDriverExportBucket> this.config.exportBucket;\n\n    if (bucketType === 's3') {\n      const { keyId, secretKey, region } = <SnowflakeDriverExportAWS> this.config.exportBucket;\n\n      const { bucketName, path } = this.parseBucketUrl(this.config.exportBucket!.bucketName);","sourceCodeStart":722,"sourceCodeEnd":758,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts#L722-L758","documentation":"Thrown in SnowflakeDriver.exportOptionsClause (via unloadSql) when the configured exportBucket has a bucketType other than 'gcsbucket', 's3', or 'azure' — i.e. the export bucket configuration carries an unsupported or misspelled bucket type, so no COPY INTO <location> storage options can be built.","triggerScenarios":"Thrown at packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts:740 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set exportBucket.bucketType to one of the supported values: 's3', 'gcs', or 'azure'.","Check for typos in the driver configuration (e.g. 's3bucket' or 'gcsbucket' are not accepted here).","If unloading is not required, remove the exportBucket option instead of supplying a partial configuration."],"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"}