pub struct RewritePgCatalogOperator;Expand description
Rewrite Postgres OPERATOR(schema.name) call syntax to the bare operator.
Postgres lets clients force an operator’s schema with
lhs OPERATOR(pg_catalog.~) rhs. sqlparser represents this as a
BinaryOperator::PGCustomBinaryOperator; DataFusion only understands the
built-in operator variants, so map every pg_catalog.<regex-op> we see
back to its builtin form:
| pg_catalog name | builtin operator |
|---|---|
~ | PGRegexMatch (~) |
~* | PGRegexIMatch (~*) |
!~ | PGRegexNotMatch (!~) |
!~* | PGRegexNotIMatch(!~*) |
Only the four regex operators are mapped, because those are the ones
clients emit via OPERATOR(...) in practice (psql’s \d queries use
OPERATOR(pg_catalog.~)). Any other operator name is left untouched for
DataFusion to report.
Trait Implementations§
Source§impl Debug for RewritePgCatalogOperator
impl Debug for RewritePgCatalogOperator
Auto Trait Implementations§
impl Freeze for RewritePgCatalogOperator
impl RefUnwindSafe for RewritePgCatalogOperator
impl Send for RewritePgCatalogOperator
impl Sync for RewritePgCatalogOperator
impl Unpin for RewritePgCatalogOperator
impl UnsafeUnpin for RewritePgCatalogOperator
impl UnwindSafe for RewritePgCatalogOperator
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more