mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-30 22:54:12 +00:00
12 lines
6.9 KiB
HTML
12 lines
6.9 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Where a native aggregate is split so two planes can run it."><title>promql::native::split - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-1ed95124.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="promql" data-themes="" data-resource-suffix="" data-rustdoc-version="1.98.1 (48a229cea 2026-09-01)" data-channel="1.98.1" data-search-js="search-9944d736.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-417ebf0a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module split</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../promql/index.html">promql</a><span class="version">1.4.0-alpha.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module split</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In promql::<wbr>native</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">promql</a>::<wbr><a href="../index.html">native</a></div><h1>Module <span>split</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/promql/native/split.rs.html#15-588">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Where a native aggregate is split so two planes can run it.</p>
|
||
<p>A <code>Complete</code> aggregate is only correct when one execution reads every contribution. Over a
|
||
partitioned raw-series scan, the innermost aggregate is split: the per-series prefix runs in each
|
||
partition under a <code>Partial</code> aggregate, and the suffix above the cut runs over a <code>Final</code> aggregate
|
||
of the merged state.</p>
|
||
<p>What cannot be split correctly is refused with [<code>DataFusionError::NotImplemented</code>], which the
|
||
planner reads as “plan this query the existing way”.</p>
|
||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Split.html" title="struct promql::native::split::Split">Split</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="struct" href="struct.SplitTrees.html" title="struct promql::native::split::SplitTrees">Split<wbr>Trees</a></dt><dd>A split aggregate as the two trees that run it.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.admit_prefix.html" title="fn promql::native::split::admit_prefix">admit_<wbr>prefix</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Checks that the prefix answers one series from one series’ samples: maps and constant-sided
|
||
binaries over a window or instant selection of a raw input.</dd><dt><a class="fn" href="fn.check_cut.html" title="fn promql::native::split::check_cut">check_<wbr>cut</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Refuses a non-<code>Complete</code> aggregate, a <code>quantile</code> (no fixed-width state), and a <code>by(...)</code> naming
|
||
a value field or the time index.</dd><dt><a class="fn" href="fn.declined.html" title="fn promql::native::split::declined">declined</a><span title="Restricted Visibility"> 🔒</span> </dt><dt><a class="fn" href="fn.enter_suffix.html" title="fn promql::native::split::enter_suffix">enter_<wbr>suffix</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Puts <code>merged</code> at the cut and returns the suffix above it.</dd><dt><a class="fn" href="fn.histogram_group_is_single.html" title="fn promql::native::split::histogram_group_is_single">histogram_<wbr>group_<wbr>is_<wbr>single</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Whether every histogram-routing key of this aggregate is necessarily empty.</dd><dt><a class="fn" href="fn.prefix_fields.html" title="fn promql::native::split::prefix_fields">prefix_<wbr>fields</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>The fields of the first raw input in <code>tree</code>, which a <code>by(...)</code> naming a value field would name.
|
||
The split tree reads exactly one source.</dd><dt><a class="fn" href="fn.split.html" title="fn promql::native::split::split">split</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Splits the innermost aggregate out of <code>node</code>; <code>Ok(None)</code> when <code>node</code> holds no aggregate.</dd><dt><a class="fn" href="fn.suffix_carries.html" title="fn promql::native::split::suffix_carries">suffix_<wbr>carries</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Whether <a href="fn.enter_suffix.html" title="fn promql::native::split::enter_suffix"><code>enter_suffix</code></a> rebuilds this subtree from constants alone. It accepts a subset of the
|
||
shapes <code>enter_suffix</code> builds; a shape outside them would become an <code>Internal</code> error there.</dd></dl></section></div></main></body></html> |