Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:Apache Druid Publication Config Form

From Leeroopedia


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
  },
}

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment