Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SCOPE and KIND are two orthogonal enums to categorize a PlanAdvice.

KINDNOTE
WARNINGIt reveals potential data correctness risks, such as state expiration, and NDU issues
ADVICEIt suggests potential SQL optimizer tuning configuration, such as enabling mini-batch to optimize to two_phase aggregation


SCOPENOTE
QUERY_LEVELIt provides advice from a global view, targeting the entire query. 
NODE_LEVELIt provides advice to a specific rel node.


The current explain result is illustrated in the SQL Explain Result. When ExplainDetails contain PLAN_ADVICE, the output format will be like

...