MCPcopy Create free account
hub / github.com/dataform-co/dataform / getEffectiveBucketName

Function getEffectiveBucketName

core/utils.ts:394–407  ·  view source on GitHub ↗
(
  defaultBucketName?: string,
  configBucketName?: string,
)

Source from the content-addressed store, hash-verified

392 * @returns bucketName used to construct storageUri for Iceberg tables
393 */
394export function getEffectiveBucketName(
395 defaultBucketName?: string,
396 configBucketName?: string,
397): string {
398 if (configBucketName) {
399 return configBucketName;
400 } else if (defaultBucketName) {
401 return defaultBucketName;
402 } else {
403 throw new Error(
404 "When defining an Iceberg table, bucket name must be defined in workflow_settings.yaml or the config block."
405 );
406 }
407}
408
409/**
410 * Returns the tableFolderRoot which will be used to construct storageUri for an

Callers 3

utils_test.tsFile · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected