( configConnection?: string, defaultConnection?: string, )
| 356 | * @returns Connection used when creating an Iceberg table. |
| 357 | */ |
| 358 | export function getConnectionForIcebergTable( |
| 359 | configConnection?: string, |
| 360 | defaultConnection?: string, |
| 361 | ): string { |
| 362 | if (configConnection) { |
| 363 | return configConnection; |
| 364 | } else if (defaultConnection) { |
| 365 | return defaultConnection; |
| 366 | } else { |
| 367 | return "DEFAULT"; |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Constructs the storage URI for an Iceberg table from storageUri, bucketName, |
no outgoing calls
no test coverage detected