Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Apache Druid ExampleInputs

From Leeroopedia
Revision as of 14:13, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Apache_Druid_ExampleInputs.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Knowledge Sources
Domains Web_Console, Data_Ingestion
Last Updated 2026-02-10 10:00 GMT

Overview

ExampleInputs is a TypeScript module that defines a set of pre-configured example data sources for the workbench input source selection step.

Description

The module exports the EXAMPLE_INPUTS array and the ExampleInput interface, providing ready-to-use sample datasets that users can select when configuring external data ingestion. The examples include Wikipedia edits (JSON), KoalasToTheMax flat and nested events (JSON), NYC Taxi cab trips in 3-file and full 70+ file variants (CSV with pre-defined column headers), and FlightCarrierOnTime data (CSV). Each example specifies a name, description, HTTP input source with URIs, and optionally an input format definition and partitionedByHint for time-based partitioning.

Usage

Used by the InputSourceStep component to populate a list of example data sources that users can select as a quick-start option when setting up external data ingestion in the SQL-based ingestion workflow.

Code Reference

Source Location

Signature

export interface ExampleInput {
  name: string;
  description: string;
  inputSource: InputSource;
  inputFormat?: InputFormat;
  partitionedByHint?: string;
}

export const EXAMPLE_INPUTS: ExampleInput[];

Import

import { EXAMPLE_INPUTS, ExampleInput } from 'web-console/src/views/workbench-view/input-source-step/example-inputs';

I/O Contract

Inputs

Name Type Required Description
(none) N/A N/A This is a static data module with no runtime inputs

Outputs

Name Type Description
EXAMPLE_INPUTS ExampleInput[] Array of 5 pre-configured example input sources (Wikipedia, KoalasToTheMax flat, KoalasToTheMax nested, NYC Taxi 3 files, NYC Taxi all files, FlightCarrierOnTime)

Usage Examples

Iterating over example inputs for display

import { EXAMPLE_INPUTS } from './example-inputs';

EXAMPLE_INPUTS.map(example => (
  <MenuItem
    key={example.name}
    text={example.name}
    label={example.description}
    onClick={() => selectExample(example)}
  />
));

Related Pages

Page Connections

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