You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Separate FORMAT parameter from EXPLAIN verbosity option in explain API #4940
The format query parameter in the explain API is currently overloaded to serve two distinct purposes:
Output format control (JSON, CSV, YAML) - controls how the response is serialized
Explain verbosity level (SIMPLE, STANDARD, EXTENDED, COST) - controls the content/detail level of the explain output
This violates the single responsibility principle and creates confusion, as FORMAT should only control the serialization format of the response, not the semantic content.
Proposal
Introduce a new query parameter (e.g., explain_level, explain_option, or verbosity) specifically for controlling the explain verbosity, while keeping format strictly for output serialization format.
Current behavior:
/_plugins/_ppl/_explain?format=extended // controls BOTH verbosity AND output format
Proposed behavior:
/_plugins/_ppl/_explain?format=json&explain_level=extended // separate concerns
/_plugins/_ppl/_explain?format=yaml&explain_level=standard
Context
This issue was identified during code review of PR #4914 (RexCall and RelDataType standardization for script push down).
Activity
LantaoJin commentedon Dec 11, 2025
Can we simplify to
/_plugins/_ppl/_explain?format=yaml&mode=standardor/_plugins/_ppl/_explain?format=yaml&level=standard? @qianheng-aws