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 Query Context Completions

From Leeroopedia


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

Overview

QUERY_CONTEXT_COMPLETIONS is a constant array of JSON completion rules that provides autocomplete suggestions for Druid query context parameters in the JSON editor.

Description

This module exports a typed array of JsonCompletionRule objects that define autocomplete behavior for the query context editor. It covers root-level query context properties such as timeout, priority, caching options, vectorization settings, and multi-stage query (MSQ) specific parameters. Additionally, it provides value-level completions for enumerated fields like selectDestination, taskAssignment, sqlJoinAlgorithm, arrayIngestMode, and vectorize.

Usage

Used by the edit-context-dialog's JSON editor to provide contextual autocomplete suggestions as users type query context parameters.

Code Reference

Source Location

Signature

import type { JsonCompletionRule } from '../../utils';

export const QUERY_CONTEXT_COMPLETIONS: JsonCompletionRule[];

Import

import { QUERY_CONTEXT_COMPLETIONS } from 'web-console/src/dialogs/edit-context-dialog/query-context-completions';

I/O Contract

Inputs

Name Type Required Description
(none) - - This is a static constant with no runtime inputs

Outputs

Name Type Description
QUERY_CONTEXT_COMPLETIONS JsonCompletionRule[] Array of completion rules covering root-level properties (timeout, priority, queryId, useCache, vectorize, maxNumTasks, etc.) and value completions for enumerated fields (selectDestination, taskAssignment, sqlJoinAlgorithm, arrayIngestMode, vectorize)

Usage Examples

Passing to JsonInput

<JsonInput
  value={queryContext}
  onChange={setQueryContext}
  jsonCompletions={QUERY_CONTEXT_COMPLETIONS}
/>

Related Pages

Page Connections

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