(
tableName: string,
tableSchema: string | undefined,
partitions: Exclude<EntityPartitionBy, { type: 'hash' }>['partitions'],
)
| 335 | }; |
| 336 | |
| 337 | const createExplicitPartitions = ( |
| 338 | tableName: string, |
| 339 | tableSchema: string | undefined, |
| 340 | partitions: Exclude<EntityPartitionBy, { type: 'hash' }>['partitions'], |
| 341 | ): TablePartition[] => |
| 342 | partitions.map((partition, index) => { |
| 343 | const resolvedName = partition.name ?? `${tableName}_${index}`; |
| 344 | const { name, schema } = splitPartitionName(resolvedName); |
| 345 | |
| 346 | return { |
| 347 | name, |
| 348 | schema: schema ?? tableSchema, |
| 349 | bound: createPartitionBound(partition.values), |
| 350 | }; |
| 351 | }); |
| 352 | |
| 353 | /** @internal */ |
| 354 | export const getTablePartitioning = ( |
no test coverage detected