For the complete documentation index, see llms.txt. This page is also available as Markdown.

Hints

Multi-stage query engine behavior can be customized with hints. Hints are provided as a comment, for example /* hintType(hint1='value1',hint2='value2') */.

Apache Pinot supports the following hints:

setOpOptions

Use setOpOptions to control the exchange Pinot inserts below UNION, UNION ALL, INTERSECT, and EXCEPT / MINUS.

is_colocated_by_set_op_keys

Type: Boolean

Default: planner chosen

When the option is unset, the V1 planner uses a local exchange for UNION ALL inputs and auto-detects whether other set-op inputs are already partitioned compatibly. You can override that decision explicitly:

  • 'true' forces a pre-partitioned direct exchange on every input.

  • 'false' forces a shuffled hash exchange on every input.

For UNION ALL, only 'false' changes the default behavior. Use it as a per-query fallback when retaining the input worker layout causes undesirable skew. If input worker counts do not align, Pinot automatically promotes the affected local exchange to a hash exchange.

This hint is only honored by the V1 planner. The V2 physical optimizer ignores it and determines set-op colocation on its own.

Pinot accepts the hint in two places:

  • Inline on the first branch:

  • On an outer SELECT that wraps the set operation:

Use the outer-wrap form for plain UNION, which Pinot rewrites before the exchange rule resolves the inline hint. Prefer the outer-wrap form for nested INTERSECT or EXCEPT queries too when you want the hint to apply at every set-op level.

Last updated

Was this helpful?