pub struct ColumnTypes {
pub numeric: Vec<String>,
pub text: Vec<String>,
pub json: Vec<String>,
pub json_children: bool,
pub columns_compared: bool,
pub computed: Vec<String>,
pub reduced: Vec<String>,
}Expand description
The column types a pushed plan assumes (see
Pushdown::column_types).
Fields§
§numeric: Vec<String>Columns compared with a numeric literal.
text: Vec<String>Columns compared with a text literal.
json: Vec<String>Columns the plan extracts a JSON path from on the strength
of the column’s declaration alone (the step carried no
<json>): the pushed json_extract is the scan’s only where
the catalog declares the column json, since the scan grafts
a leaf only as declared (spec: Grafting).
json_children: boolWhether the plan reads a JSON value as a child node of its
column (/col/key::, or the bare /col/key of an existence
test), with <json> on the step or without: the scan’s only
where the mount’s grafts list scalars as children, which the
property reading (?graft=json2) does not. The property
form (/col::key) answers under both readings and does not
set it. No assumption about the catalog (is_empty and
unmet leave it out): the front end holds it against its
mount’s reading.
columns_compared: boolWhether the plan compares two values of the row with each
other ([::a = ::b], a join’s key equality, a column against
an arithmetic): the engine compares them by value, SQL by
their types, and the two agree only where every column
compared is numeric. The columns are among numeric; this
says that no typed engine enforces the assumption by itself
(two text columns compare without complaint, as texts), so a
source whose catalog is not asked does not get the plan.
computed: Vec<String>The columns among numeric that a computation assumed
(::a + 1), and those a reducer assumed (::a @| sum): what
a front end names when it tells an assumption the catalog did
not bear out. A column in neither was assumed by a
comparison.
reduced: Vec<String>Implementations§
Source§impl ColumnTypes
impl ColumnTypes
pub fn is_empty(&self) -> bool
Sourcepub fn unmet(&self, catalog: &[ColumnFact]) -> Vec<String>
pub fn unmet(&self, catalog: &[ColumnFact]) -> Vec<String>
The assumptions a catalog does not bear out: the columns
compared with a number (or with each other, or computed
with) that are not numeric-typed, and those compared with
text that are, or whose text the database does not compare
exactly. catalog lists every column of the tables read
(ColumnFact); names meet without regard to case. A column
the catalog does not list is unknown, and counts as unmet.
Trait Implementations§
Source§impl Clone for ColumnTypes
impl Clone for ColumnTypes
Source§impl Debug for ColumnTypes
impl Debug for ColumnTypes
Source§impl Default for ColumnTypes
impl Default for ColumnTypes
impl Eq for ColumnTypes
Source§impl PartialEq for ColumnTypes
impl PartialEq for ColumnTypes
impl StructuralPartialEq for ColumnTypes
Auto Trait Implementations§
impl Forget for ColumnTypes
impl Freeze for ColumnTypes
impl Move for ColumnTypes
impl RefUnwindSafe for ColumnTypes
impl Send for ColumnTypes
impl Sync for ColumnTypes
impl Unpin for ColumnTypes
impl UnsafeUnpin for ColumnTypes
impl UnwindSafe for ColumnTypes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.