pub struct Context { /* private fields */ }Expand description
What the passes are given besides the plan.
Only the settings today. The catalog, the statistics and the planning deadline are the other
three things spec/engine/11-optimizer.md puts in here, and each arrives with the first pass
that reads it: the statistics with cardinality estimation, the deadline with join ordering,
which is the only search in the plan and so the only thing that can spend real time. A field
that no pass reads is a field whose meaning nobody has had to decide yet, and deciding it early
is how it ends up wrong.
Implementations§
Source§impl Context
impl Context
Sourcepub fn without(names: &str) -> Result<Self>
pub fn without(names: &str) -> Result<Self>
Turns off the passes named in DuckDB’s comma separated spelling.
Empty entries are skipped, so a trailing comma is not an error, which is what the binary does with one.
§Errors
For a name that is not a pass, with the sentence the binary prints for one. rudb lists every name it has rather than the closest one by edit distance, which is the same divergence it already has on every other complaint about a name it does not know.
Sourcepub fn is_disabled(&self, name: &str) -> bool
pub fn is_disabled(&self, name: &str) -> bool
Whether the pass by that name has been turned off.