Versions Compared

Key

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

...

Q: What is the relationship between PLAN_ADVICE, CHANGELOG_MODE, and ESITMATED_COSTSCOST? Can I explain all of those together? What will the result look like?

A: PLAN_ADVICE is another kind of explain detail towards CHANGELOG_MODE and ESTIMATED_COSTSCOST. Users can choose to explain multiple details at the same time.

Code Block
languagesql
firstline1
titleUser SQL Syntax
linenumberstrue
EXPLAIN PLAN_ADVICE, CHANGELOG_MODE, ESTIMATED_COSTSCOST <query>


Q: Why propose this feature in the community? It sounds more suitable for the platform side to implement.

...

The relationship between them and the corresponding SQL-processing phase is illustrated below. Stream Graph is first excluded because we want to limit this analysis within the compile time. And from this Fig, we can tell that optimized rel is the closest to the original query.


Image RemovedImage Added