Implementation:Apache Druid Publication Config Form
| Knowledge Sources | |
|---|---|
| Domains | Data_Ingestion, Data_Management |
| Last Updated | 2026-02-10 00:00 GMT |
Overview
Concrete form-based UI pattern for configuring the target datasource name and write mode in the batch ingestion wizard.
Description
The publication settings step renders form controls for the datasource name (text input) and append toggle (switch). These values modify spec.spec.dataSchema.dataSource and spec.spec.ioConfig.appendToExisting in the ingestion spec.
This is a pure configuration form with no API calls — the publication target is used when the spec is submitted to the Druid Overlord.
Usage
Import this as part of the LoadDataView publication step. Rendered after tuning parameters and before spec review.
Code Reference
Source Location
- Repository: Apache Druid
- File: web-console/src/views/load-data-view/load-data-view.tsx
- Lines: L3389-L3437
Signature
// Rendered within LoadDataView.renderPublishStep()
// Uses FormGroup + InputGroup for datasource name
// Uses Switch for appendToExisting toggle
interface PublicationFields {
'spec.spec.dataSchema.dataSource': string;
'spec.spec.ioConfig.appendToExisting': boolean;
}
Import
// Internal to LoadDataView — not independently importable
import { LoadDataView } from './views/load-data-view/load-data-view';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| spec | Partial<IngestionSpec> | Yes | Current ingestion spec |
Outputs
| Name | Type | Description |
|---|---|---|
| spec.spec.dataSchema.dataSource | string | Target datasource name for segment publication |
| spec.spec.ioConfig.appendToExisting | boolean | Whether to append (true) or overwrite (false) existing segments |
Usage Examples
Setting Publication Target
// In the ingestion spec:
{
dataSchema: {
dataSource: 'my_events_table',
},
ioConfig: {
appendToExisting: false, // Overwrite mode
},
}