Files
Victor FarazdagiandJoshen Lim 00adb5a81b chore(studio): remove the Iceberg pipeline destination (#52229)
## Problem

Retire the deprecated Iceberg (Analytics Bucket) destination from
Pipelines.

## Solution

- Remove the destination UI, configuration mappings, feature-flag usage,
and generated API variants.
- Remove the legacy Pipelines integration from Storage while preserving
standalone Analytics Buckets.
- Remove unused components and sheet-layout support, and add regression
coverage for retained Storage operations.
- Remove the stale Pipelines claim from the Storage docs overview.

## Validation

- Pipelines, Storage, and replication data tests
- After the final cleanup: Studio typecheck and all 3 Analytics Bucket
regression tests passed.
- Formatting, scoped ESLint, Knip, and whitespace checks passed; lint
warnings are pre-existing.
- Storage overview: Prettier, ESLint with zero warnings, content-listing
schema validation, and Markdown rendering passed.

Production API-type verification remains pending the coordinated API
deployment. Legacy Iceberg pipelines, destinations, and slots must be
cleaned up before rollout.

## Review instructions

1. Verify that Pipelines offers BigQuery, DuckLake, Snowflake, and
ClickHouse, with no Analytics Bucket option.
2. Verify that Storage Analytics Bucket creation, namespace/table
operations, and wrapper/key cleanup remain available without Pipelines
controls.

## Checklist

- [x] Read CONTRIBUTING.md.
- [x] Updated the Storage overview copy and checked the docs authoring
guidance.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-11 12:18:04 +03:00

75 lines
2.7 KiB
TypeScript

import { describe, expect, it } from 'vitest'
import { generateDefaultValues } from '../DestinationPanel/DestinationForm/DestinationForm.utils'
import { getDataValidationIssues } from './PipelineDataValidation.utils'
import type { ReplicationPublicationData } from '@/data/replication/publication-query'
const data = {
...generateDefaultValues({ editMode: false }),
publicationName: 'analytics',
}
const publication: ReplicationPublicationData = {
name: 'analytics',
config: { type: 'tables', tables: [], operations: ['insert'], publish_via_partition_root: false },
tables: [{ id: 1, name: 'orders', schema: 'public', kind: 'table', partition_parent_id: null }],
}
describe('getDataValidationIssues', () => {
it.each(['include_all_tables', 'skip_all_tables'] as const)(
'accepts %s without a table selection',
(tableSyncCopyMode) => {
expect(
getDataValidationIssues({ ...data, tableSyncCopyMode }, 'BigQuery', publication)
).toEqual([])
}
)
it.each(['include_tables', 'skip_tables'] as const)(
'requires current tables for %s',
(tableSyncCopyMode) => {
expect(
getDataValidationIssues(
{ ...data, tableSyncCopyMode, tableSyncCopyTableIds: ['1'] },
'BigQuery',
publication
)
).toEqual([])
for (const tableSyncCopyTableIds of [[], ['bad'], ['42']]) {
expect(
getDataValidationIssues(
{ ...data, tableSyncCopyMode, tableSyncCopyTableIds },
'BigQuery',
publication
)
).toEqual([expect.objectContaining({ path: 'tableSyncCopyTableIds' })])
}
}
)
it('rejects unavailable or mismatched publications and invalid advanced settings', () => {
expect(getDataValidationIssues(data, 'BigQuery')).toEqual([
expect.objectContaining({ path: 'publicationName' }),
])
expect(
getDataValidationIssues(data, 'BigQuery', { ...publication, name: 'other' })
).toHaveLength(1)
for (const path of [
'maxFillMs',
'maxTableSyncWorkers',
'maxCopyConnectionsPerTable',
] as const) {
expect(getDataValidationIssues({ ...data, [path]: -1 }, 'Snowflake', publication)).toEqual([
expect.objectContaining({ path }),
])
}
})
it('validates BigQuery table layouts only for BigQuery', () => {
const invalidLayout = {
...data,
tableOptions: [{ tableId: 1, partitionBy: { kind: 'time_column' as const, column: '' } }],
}
expect(getDataValidationIssues(invalidLayout, 'BigQuery', publication)).toEqual([
expect.objectContaining({ path: 'tableOptions.0.partitionBy.column' }),
])
expect(getDataValidationIssues(invalidLayout, 'Snowflake', publication)).toEqual([])
})
})