{"record":{"id":"1a711c0fa9db5d57","repo":"cube-js/cube","slug":"unsupported-export-bucket-type-buckettype-1a711c","errorCode":null,"errorMessage":"Unsupported export bucket type: ${bucketType}","messagePattern":"Unsupported export bucket type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts","lineNumber":802,"sourceCode":"      return this.extractFilesFromGCS({ credentials }, bucketName, exportPrefix);\n    } else if (bucketType === 'azure') {\n      const { azureKey, sasToken, clientId, tenantId, tokenFilePath } = (\n        <SnowflakeDriverExportAzure> this.config.exportBucket\n      );\n\n      const { bucketName, path } = this.parseBucketUrl(this.config.exportBucket!.bucketName);\n      const pathArr = path.split('/');\n      const azureBucketPath = `${bucketName}/${pathArr[0]}`;\n\n      const exportPrefix = pathArr.length > 1 ? `${pathArr.slice(1).join('/')}/${tableName}` : tableName;\n\n      return this.extractFilesFromAzure(\n        { azureKey, sasToken, clientId, tenantId, tokenFilePath },\n        azureBucketPath,\n        exportPrefix,\n      );\n    } else {\n      throw new Error(`Unsupported export bucket type: ${bucketType}`);\n    }\n  }\n\n  /**\n   * Executes a query and returns either query result memory data or\n   * query result stream, depending on options.\n   */\n  public downloadQueryResults(\n    query: string,\n    values: unknown[],\n    options: DownloadQueryResultsOptions,\n  ): CancelablePromise<DownloadQueryResultsResult> {\n    if (!options.streamImport) {\n      return this.memory(query, values);\n    } else {\n      return this.stream(query, values, options);\n    }\n  }","sourceCodeStart":784,"sourceCodeEnd":820,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts#L784-L820","documentation":"Thrown in SnowflakeDriver.getCsvFiles (via csvFile) after an unload when the configured exportBucket.bucketType does not match 'gcsbucket', 's3', or 'azure'. By this point data was exported, but the driver cannot pick the cloud-storage client (GCS/S3/Azure) needed to extract the CSV files, so it aborts.","triggerScenarios":"Thrown at packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts:802 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct exportBucket.bucketType to 's3', 'gcs', or 'azure' in the driver config.","Supply the credentials required for the chosen bucket type (AWS keys, GCS key file, or Azure key/SAS/service-principal settings).","Verify the same bucket type was used for the unload step that produced the files."],"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"}