Enum datafusion::sql::sqlparser::ast::JsonOperator
source · pub enum JsonOperator {
Arrow,
LongArrow,
HashArrow,
HashLongArrow,
Colon,
AtArrow,
ArrowAt,
HashMinus,
AtQuestion,
AtAt,
}
Expand description
JsonOperator
Variants§
Arrow
-> keeps the value as json
LongArrow
->> keeps the value as text or int.
HashArrow
#> Extracts JSON sub-object at the specified path
HashLongArrow
#>> Extracts JSON sub-object at the specified path as text
Colon
: Colon is used by Snowflake (Which is similar to LongArrow)
AtArrow
jsonb @> jsonb -> boolean: Test whether left json contains the right json
ArrowAt
jsonb <@ jsonb -> boolean: Test whether right json contains the left json
HashMinus
jsonb #- text[] -> jsonb: Deletes the field or array element at the specified path, where path elements can be either field keys or array indexes.
AtQuestion
jsonb @? jsonpath -> boolean: Does JSON path return any item for the specified JSON value?
AtAt
jsonb @@ jsonpath → boolean: Returns the result of a JSON path predicate check for the specified JSON value. Only the first item of the result is taken into account. If the result is not Boolean, then NULL is returned.
Trait Implementations§
source§impl Clone for JsonOperator
impl Clone for JsonOperator
source§fn clone(&self) -> JsonOperator
fn clone(&self) -> JsonOperator
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JsonOperator
impl Debug for JsonOperator
source§impl Display for JsonOperator
impl Display for JsonOperator
source§impl Hash for JsonOperator
impl Hash for JsonOperator
source§impl Ord for JsonOperator
impl Ord for JsonOperator
source§fn cmp(&self, other: &JsonOperator) -> Ordering
fn cmp(&self, other: &JsonOperator) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for JsonOperator
impl PartialEq for JsonOperator
source§fn eq(&self, other: &JsonOperator) -> bool
fn eq(&self, other: &JsonOperator) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JsonOperator
impl PartialOrd for JsonOperator
source§fn partial_cmp(&self, other: &JsonOperator) -> Option<Ordering>
fn partial_cmp(&self, other: &JsonOperator) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Visit for JsonOperator
impl Visit for JsonOperator
source§impl VisitMut for JsonOperator
impl VisitMut for JsonOperator
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Copy for JsonOperator
impl Eq for JsonOperator
impl StructuralEq for JsonOperator
impl StructuralPartialEq for JsonOperator
Auto Trait Implementations§
impl RefUnwindSafe for JsonOperator
impl Send for JsonOperator
impl Sync for JsonOperator
impl Unpin for JsonOperator
impl UnwindSafe for JsonOperator
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.